diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2020-03-02 17:11:13 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-03 06:50:58 +0000 |
commit | 12d7f8eed6cafd37697354ab4bbbe25fb47ad462 (patch) | |
tree | 512ed59c2d2ca1a953ee1318ac8eee277157eed9 /src/mongo/db/index_builds_coordinator_mongod.h | |
parent | 6580304d0211f406566514ec68d5865a6a9e7810 (diff) | |
download | mongo-12d7f8eed6cafd37697354ab4bbbe25fb47ad462.tar.gz |
SERVER-46553 Set index build commit quorum default value as majority for 2 phase index builds.
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.h')
-rw-r--r-- | src/mongo/db/index_builds_coordinator_mongod.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.h b/src/mongo/db/index_builds_coordinator_mongod.h index 46ce97a3c8c..005779a26a2 100644 --- a/src/mongo/db/index_builds_coordinator_mongod.h +++ b/src/mongo/db/index_builds_coordinator_mongod.h @@ -130,9 +130,20 @@ private: */ bool _checkVoteCommitIndexCmdSucceeded(const BSONObj& response); - void _signalIfCommitQuorumIsSatisfied(OperationContext* opCtx, + /** + * Signals index builder to commit. + */ + void _sendCommitQuorumSatisfiedSignal(WithLock lk, + OperationContext* opCtx, std::shared_ptr<ReplIndexBuildState> replState); + 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; |