We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dfda2 commit 8683365Copy full SHA for 8683365
pbm/oplog/restore.go
@@ -389,16 +389,15 @@ func (o *OplogRestore) isOpForCloning(oe *db.Oplog) bool {
389
return true // internal ops of applyOps are checked one by one later
390
}
391
392
- cloneFromDB, cloneFromColl, _ := strings.Cut(o.cloneNS.FromNS, ".")
393
- if db != cloneFromDB {
+ if db != o.cloneNS.fromDB {
394
// it's command not relevant for db to clone from
395
return false
396
397
398
if _, ok := cloningNSSupportedCommands[cmd]; ok {
399
// check if command targets collection
400
collForCmd, _ := oe.Object[0].Value.(string)
401
- if collForCmd == cloneFromColl {
+ if collForCmd == o.cloneNS.fromColl {
402
return true
403
404
0 commit comments