-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.1
-
Component/s: Replication
-
None
-
Replication
-
ALL
A rename collection, run from the shell, such as:
db.test.renameCollection("test2", true)
Will result in an oplog entry that contains:
"o": { "renameCollection": "XXX", "to": "YYY", "dropTarget": true }
The following command will still drop the target collection, I assume because
{dropTarget: true} still evalulates to true.
db.test.renameCollection("test2", {dropTarget:true})
But the resulting oplog entry contains:
"o": { "renameCollection": "XXX", "to": "YYY", "dropTarget": { "dropTarget": true }