diff options
Diffstat (limited to 'src/mongo/db/commands/create_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/create_indexes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp index da34fa509ad..c23ff7f44fc 100644 --- a/src/mongo/db/commands/create_indexes.cpp +++ b/src/mongo/db/commands/create_indexes.cpp @@ -320,7 +320,7 @@ bool runCreateIndexes(OperationContext* opCtx, writeConflictRetry(opCtx, kCommandName, ns.ns(), [&] { WriteUnitOfWork wunit(opCtx); - collection = db->createCollection(opCtx, ns.ns(), CollectionOptions()); + collection = db->createCollection(opCtx, ns, CollectionOptions()); invariant(collection); wunit.commit(); }); @@ -561,7 +561,7 @@ bool runCreateIndexesWithCoordinator(OperationContext* opCtx, options.uuid = collectionUUID; writeConflictRetry(opCtx, kCommandName, ns.ns(), [&] { WriteUnitOfWork wunit(opCtx); - collection = db->createCollection(opCtx, ns.ns(), options); + collection = db->createCollection(opCtx, ns, options); invariant(collection, str::stream() << "Failed to create collection " << ns.ns() << " during index creation: " |