summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator_mongod_test.cpp
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2020-03-03 01:38:37 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-03 23:55:58 +0000
commitcde28e2ab957bd4a27ef240dfbfeea3cc8a70b74 (patch)
tree3d8b2f3eb8c6e3f5e0193b0138293757a8120bee /src/mongo/db/index_builds_coordinator_mongod_test.cpp
parent4258a3d30c35bbdb1506002557a7ff1e98aef490 (diff)
downloadmongo-cde28e2ab957bd4a27ef240dfbfeea3cc8a70b74.tar.gz
SERVER-45001 Enable commit quorum for two phase index builds by default.
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod_test.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod_test.cpp b/src/mongo/db/index_builds_coordinator_mongod_test.cpp
index 8490b157381..cc4128756a6 100644
--- a/src/mongo/db/index_builds_coordinator_mongod_test.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod_test.cpp
@@ -82,6 +82,13 @@ void IndexBuildsCoordinatorMongodTest::setUp() {
Client::initThread(threadName.c_str());
};
_indexBuildsCoord = std::make_unique<IndexBuildsCoordinatorMongod>(options);
+
+ // Disable index build commit quorum as we don't have support of replication subsystem for
+ // voting.
+ ASSERT_OK(ServerParameterSet::getGlobal()
+ ->getMap()
+ .find("enableIndexBuildCommitQuorum")
+ ->second->setFromString("false"));
}
void IndexBuildsCoordinatorMongodTest::tearDown() {