diff options
Diffstat (limited to 'src/mongo/db/commands/create_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/create_indexes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp index 94027121c10..9b848683cd3 100644 --- a/src/mongo/db/commands/create_indexes.cpp +++ b/src/mongo/db/commands/create_indexes.cpp @@ -375,7 +375,7 @@ CreateIndexesReply runCreateIndexesOnNewCollection( for (const auto& spec : specs) { uassert(6100900, "Cannot implicitly create a new collection with createIndex 'clustered' option", - !spec["clustered"]); + !spec[IndexDescriptor::kClusteredFieldName]); } // We need to create the collection. |