diff options
author | Benjamin Murphy <benjamin_murphy@me.com> | 2016-03-22 16:37:12 -0400 |
---|---|---|
committer | Benjamin Murphy <benjamin_murphy@me.com> | 2016-03-24 18:11:16 -0400 |
commit | a19406fdedac2bff515a0b162c8d496b11f4e455 (patch) | |
tree | 5b0c43b5ac19f793d1c4c15da66d8f77eaa30624 /src | |
parent | 0a412aaa51a81325465837e712faaaaaca27e922 (diff) | |
download | mongo-a19406fdedac2bff515a0b162c8d496b11f4e455.tar.gz |
SERVER-23274 renameCollection on a temporary collection correctly replicates.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index 72cd946e601..62e36d9238a 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -664,8 +664,8 @@ std::map<std::string, ApplyOpMetadata> opsMap = { return renameCollection(txn, NamespaceString(cmd.firstElement().valuestrsafe()), NamespaceString(cmd["to"].valuestrsafe()), - cmd["stayTemp"].trueValue(), - cmd["dropTarget"].trueValue()); + cmd["dropTarget"].trueValue(), + cmd["stayTemp"].trueValue()); }, {ErrorCodes::NamespaceNotFound, ErrorCodes::NamespaceExists}}}, {"applyOps", |