summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2020-03-02 17:11:13 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-03 06:50:58 +0000
commit12d7f8eed6cafd37697354ab4bbbe25fb47ad462 (patch)
tree512ed59c2d2ca1a953ee1318ac8eee277157eed9 /src/mongo/embedded
parent6580304d0211f406566514ec68d5865a6a9e7810 (diff)
downloadmongo-12d7f8eed6cafd37697354ab4bbbe25fb47ad462.tar.gz
SERVER-46553 Set index build commit quorum default value as majority for 2 phase index builds.
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/index_builds_coordinator_embedded.cpp5
-rw-r--r--src/mongo/embedded/index_builds_coordinator_embedded.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/embedded/index_builds_coordinator_embedded.cpp b/src/mongo/embedded/index_builds_coordinator_embedded.cpp
index 4d218ae9095..b8a5e973946 100644
--- a/src/mongo/embedded/index_builds_coordinator_embedded.cpp
+++ b/src/mongo/embedded/index_builds_coordinator_embedded.cpp
@@ -104,4 +104,9 @@ void IndexBuildsCoordinatorEmbedded::_signalIfCommitQuorumIsSatisfied(
MONGO_UNREACHABLE;
}
+bool IndexBuildsCoordinatorEmbedded::_signalIfCommitQuorumNotEnabled(
+ OperationContext* opCtx, std::shared_ptr<ReplIndexBuildState> replState) {
+ MONGO_UNREACHABLE;
+}
+
} // namespace mongo
diff --git a/src/mongo/embedded/index_builds_coordinator_embedded.h b/src/mongo/embedded/index_builds_coordinator_embedded.h
index 0f5b00a3e3c..677cc9ecf67 100644
--- a/src/mongo/embedded/index_builds_coordinator_embedded.h
+++ b/src/mongo/embedded/index_builds_coordinator_embedded.h
@@ -80,6 +80,9 @@ private:
void _signalIfCommitQuorumIsSatisfied(OperationContext* opCtx,
std::shared_ptr<ReplIndexBuildState> replState) override;
+ bool _signalIfCommitQuorumNotEnabled(OperationContext* opCtx,
+ std::shared_ptr<ReplIndexBuildState> replState) override;
+
void _signalPrimaryForCommitReadiness(OperationContext* opCtx,
std::shared_ptr<ReplIndexBuildState> replState) override;