diff options
author | Geert Bosch <geert@mongodb.com> | 2019-04-17 16:18:22 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2019-04-26 16:18:38 -0400 |
commit | 8cbbba49935f632e876037f9f2d9eecc779eb96a (patch) | |
tree | f1b4416f63dd87ed97223751c2c0d4eff4063628 /src/mongo/db/ops | |
parent | 93dd23880759430872510ef0b539e746192e44e2 (diff) | |
download | mongo-8cbbba49935f632e876037f9f2d9eecc779eb96a.tar.gz |
SERVER-40724 Change namespace arguments to use NamespaceString
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index 84f7e31e565..e42c6786f2a 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -81,11 +81,11 @@ UpdateResult update(OperationContext* opCtx, Database* db, const UpdateRequest& if (userInitiatedWritesAndNotPrimary) { uassertStatusOK(Status(ErrorCodes::PrimarySteppedDown, str::stream() << "Not primary while creating collection " - << nsString.ns() + << nsString << " during upsert")); } WriteUnitOfWork wuow(opCtx); - collection = db->createCollection(opCtx, nsString.ns(), CollectionOptions()); + collection = db->createCollection(opCtx, nsString, CollectionOptions()); invariant(collection); wuow.commit(); }); |