diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2020-03-25 11:24:28 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-09 20:30:23 +0000 |
commit | 4c41ed37fd58c4e4d4d2707f63f797f23ff9b486 (patch) | |
tree | 6955347bef25e936282e7581fd9b10586c8ca9f7 /src/mongo/dbtests | |
parent | b69c1496a903bcdf8a99849e6420e6d6259e1770 (diff) | |
download | mongo-4c41ed37fd58c4e4d4d2707f63f797f23ff9b486.tar.gz |
SERVER-46557 Guarantees the commit quorum value gets persisted before start of the index build.
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index 1b050e9e492..67be7eb3eb8 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -2132,6 +2132,13 @@ public: auto storageEngine = _opCtx->getServiceContext()->getStorageEngine(); auto durableCatalog = storageEngine->getCatalog(); + // Create config.system.indexBuilds collection to store commit quorum value during index + // building. + ASSERT_OK( + createCollection(_opCtx, + NamespaceString::kIndexBuildEntryNamespace.db().toString(), + BSON("create" << NamespaceString::kIndexBuildEntryNamespace.coll()))); + NamespaceString nss("unittests.timestampMultiIndexBuilds"); reset(nss); |