Skip to content

Commit e1873a1

Browse files
committed
PBM-1312: print in debug number of parallel collection
1 parent e66f215 commit e1873a1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pbm/backup/logical.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ func (b *Backup) doLogical(
147147
}
148148
}
149149

150+
l.Debug("dumping up to %d collections in parallel", numParallelColls)
151+
150152
dump, err = snapshot.NewBackup(b.brief.URI, numParallelColls, db, coll)
151153
if err != nil {
152154
return errors.Wrap(err, "init mongodump options")

pbm/restore/logical.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ func (r *Restore) RunSnapshot(
794794
// so we'll continue with selective restore
795795
}
796796

797+
r.log.Debug("restoring up to %d collections in parallel", r.numParallelColls)
798+
797799
rdr, err = snapshot.DownloadDump(
798800
func(ns string) (io.ReadCloser, error) {
799801
stg, err := util.StorageFromConfig(&bcp.Store.StorageConf, r.log)

0 commit comments

Comments
 (0)