Skip to content

Commit

Permalink
PBM-1312: print in debug number of parallel collection
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Sep 27, 2024
1 parent e66f215 commit e1873a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pbm/backup/logical.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (b *Backup) doLogical(
}
}

l.Debug("dumping up to %d collections in parallel", numParallelColls)

dump, err = snapshot.NewBackup(b.brief.URI, numParallelColls, db, coll)
if err != nil {
return errors.Wrap(err, "init mongodump options")
Expand Down
2 changes: 2 additions & 0 deletions pbm/restore/logical.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ func (r *Restore) RunSnapshot(
// so we'll continue with selective restore
}

r.log.Debug("restoring up to %d collections in parallel", r.numParallelColls)

rdr, err = snapshot.DownloadDump(
func(ns string) (io.ReadCloser, error) {
stg, err := util.StorageFromConfig(&bcp.Store.StorageConf, r.log)
Expand Down

0 comments on commit e1873a1

Please sign in to comment.