diff options
Diffstat (limited to 'src/mongo/db/commands/rename_collection.cpp')
-rw-r--r-- | src/mongo/db/commands/rename_collection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/rename_collection.cpp b/src/mongo/db/commands/rename_collection.cpp index 9f5ff7b54fc..9674067afa5 100644 --- a/src/mongo/db/commands/rename_collection.cpp +++ b/src/mongo/db/commands/rename_collection.cpp @@ -77,7 +77,7 @@ namespace mongo { IndexCatalog::IndexKillCriteria criteria; criteria.ns = source; std::vector<BSONObj> prelim = - IndexBuilder::killMatchingIndexBuilds(db->getCollection(opCtx, source), criteria); + IndexBuilder::killMatchingIndexBuilds(db->getCollection(source), criteria); std::vector<BSONObj> indexes; @@ -168,7 +168,7 @@ namespace mongo { } Database* const sourceDB = dbHolder().get(txn, nsToDatabase(source)); - Collection* const sourceColl = sourceDB ? sourceDB->getCollection(txn, source) + Collection* const sourceColl = sourceDB ? sourceDB->getCollection(source) : NULL; if (!sourceColl) { errmsg = "source namespace does not exist"; @@ -212,7 +212,7 @@ namespace mongo { // Check if the target namespace exists and if dropTarget is true. // If target exists and dropTarget is not true, return false. - if (targetDB->getCollection(txn, target)) { + if (targetDB->getCollection(target)) { if (!cmdObj["dropTarget"].trueValue()) { errmsg = "target namespace exists"; return false; |