summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2019-04-17 16:18:22 -0400
committerGeert Bosch <geert@mongodb.com>2019-04-26 16:18:38 -0400
commit8cbbba49935f632e876037f9f2d9eecc779eb96a (patch)
treef1b4416f63dd87ed97223751c2c0d4eff4063628 /src/mongo/db/repl/storage_interface_impl.cpp
parent93dd23880759430872510ef0b539e746192e44e2 (diff)
downloadmongo-8cbbba49935f632e876037f9f2d9eecc779eb96a.tar.gz
SERVER-40724 Change namespace arguments to use NamespaceString
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index 34128f17e80..44c2904ba1d 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -230,7 +230,7 @@ StorageInterfaceImpl::createCollectionForBulkLoading(
{
// Create the collection.
WriteUnitOfWork wunit(opCtx.get());
- fassert(40332, db.getDb()->createCollection(opCtx.get(), nss.ns(), options, false));
+ fassert(40332, db.getDb()->createCollection(opCtx.get(), nss, options, false));
wunit.commit();
}
@@ -411,7 +411,7 @@ Status StorageInterfaceImpl::dropReplicatedDatabases(OperationContext* opCtx) {
}
Status StorageInterfaceImpl::createOplog(OperationContext* opCtx, const NamespaceString& nss) {
- mongo::repl::createOplog(opCtx, nss.ns(), true);
+ mongo::repl::createOplog(opCtx, nss, true);
return Status::OK();
}
@@ -444,7 +444,7 @@ Status StorageInterfaceImpl::createCollection(OperationContext* opCtx,
}
WriteUnitOfWork wuow(opCtx);
try {
- auto coll = db->createCollection(opCtx, nss.ns(), options);
+ auto coll = db->createCollection(opCtx, nss, options);
invariant(coll);
} catch (const AssertionException& ex) {
return ex.toStatus();
@@ -516,8 +516,7 @@ Status StorageInterfaceImpl::renameCollection(OperationContext* opCtx,
<< " not found.");
}
WriteUnitOfWork wunit(opCtx);
- const auto status =
- autoDB.getDb()->renameCollection(opCtx, fromNS.ns(), toNS.ns(), stayTemp);
+ const auto status = autoDB.getDb()->renameCollection(opCtx, fromNS, toNS, stayTemp);
if (!status.isOK()) {
return status;
}