diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-14 13:05:52 -0500 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-22 23:40:01 -0500 |
commit | cbf90926f4bdc5f3fd6d20291a5e24218e5f77ba (patch) | |
tree | f4b7a8e1c4bc9a06f23ec05f1e5fdbc569a7d305 /src/mongo/db/index_builds_coordinator.h | |
parent | b5f25acf119fd8b2c6119474f6b9ef13180ccc59 (diff) | |
download | mongo-cbf90926f4bdc5f3fd6d20291a5e24218e5f77ba.tar.gz |
SERVER-39527 Implement IndexBuildsCoordinatorMongod::setCommitQuorum
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h index cb7117376e0..3887e0def46 100644 --- a/src/mongo/db/index_builds_coordinator.h +++ b/src/mongo/db/index_builds_coordinator.h @@ -230,10 +230,12 @@ public: virtual Status voteCommitIndexBuild(const UUID& buildUUID, const HostAndPort& hostAndPort) = 0; /** - * TODO: This is not yet implemented. (This will have to take a collection IS lock to look up - * the collection UUID.) + * Sets a new commit quorum on an index build that manages 'indexNames' on collection 'nss'. + * If the 'newCommitQuorum' is not satisfiable by the current replica set config, then the + * previous commit quorum is kept and the UnsatisfiableCommitQuorum error code is returned. */ - virtual Status setCommitQuorum(const NamespaceString& nss, + virtual Status setCommitQuorum(OperationContext* opCtx, + const NamespaceString& nss, const std::vector<StringData>& indexNames, const CommitQuorumOptions& newCommitQuorum) = 0; |