summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/create_collection_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/create_collection_test.cpp')
-rw-r--r--src/mongo/db/catalog/create_collection_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/create_collection_test.cpp b/src/mongo/db/catalog/create_collection_test.cpp
index 91fe9834ee9..0de23289103 100644
--- a/src/mongo/db/catalog/create_collection_test.cpp
+++ b/src/mongo/db/catalog/create_collection_test.cpp
@@ -112,7 +112,7 @@ void CreateCollectionTest::validateValidator(const std::string& validatorStr,
options.validator = fromjson(validatorStr);
options.uuid = UUID::gen();
- return writeConflictRetry(opCtx.get(), "create", newNss.ns(), [&] {
+ return writeConflictRetry(opCtx.get(), "create", newNss, [&] {
AutoGetCollection autoColl(opCtx.get(), newNss, MODE_IX);
auto db = autoColl.ensureDbExists(opCtx.get());
ASSERT_TRUE(db) << "Cannot create collection " << newNss.toStringForErrorMsg()