summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_build_entry_helpers.cpp
diff options
context:
space:
mode:
authorDaniel Solnik <dansolnik@gmail.com>2019-06-26 17:30:46 -0400
committerDaniel Solnik <dansolnik@gmail.com>2019-06-26 17:30:46 -0400
commit1656c151d450aa14b1bad1abbc95924d1861def1 (patch)
tree35a963ee7c8ffb450a5064687ecb3d674d1d5f64 /src/mongo/db/index_build_entry_helpers.cpp
parented66b586a0e6bc97e4ca91ce33d71d6c303b5278 (diff)
downloadmongo-1656c151d450aa14b1bad1abbc95924d1861def1.tar.gz
Revert "SERVER-38796 Refactor CollectionOptions::parse to be static"
This reverts commit f16da96fdbb9a151cbc9890802c53370298b4fd2.
Diffstat (limited to 'src/mongo/db/index_build_entry_helpers.cpp')
-rw-r--r--src/mongo/db/index_build_entry_helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_build_entry_helpers.cpp b/src/mongo/db/index_build_entry_helpers.cpp
index 8ecbc4544c5..5d5048945a1 100644
--- a/src/mongo/db/index_build_entry_helpers.cpp
+++ b/src/mongo/db/index_build_entry_helpers.cpp
@@ -106,9 +106,9 @@ void ensureIndexBuildEntriesNamespaceExists(OperationContext* opCtx) {
// Create the collection if it doesn't exist.
if (!db->getCollection(opCtx, NamespaceString::kIndexBuildEntryNamespace)) {
WriteUnitOfWork wuow(opCtx);
- CollectionOptions defaultCollectionOptions;
+ CollectionOptions options;
Collection* collection = db->createCollection(
- opCtx, NamespaceString::kIndexBuildEntryNamespace, defaultCollectionOptions);
+ opCtx, NamespaceString::kIndexBuildEntryNamespace, options);
// Ensure the collection exists.
invariant(collection);