diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-03-17 15:15:05 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-18 18:11:45 +0000 |
commit | 4870cb1a9dbefc1007a8d35f0be25d385e9f95f8 (patch) | |
tree | 7a7ba55f61ab6b16bdce4add3c19d8bf45c129b1 /src/mongo/db/repl_index_build_state.h | |
parent | 7296a460f826c8a618147e09606c5f1935c482a4 (diff) | |
download | mongo-4870cb1a9dbefc1007a8d35f0be25d385e9f95f8.tar.gz |
SERVER-39423 Secondaries already possessing an index replicated via startIndexBuild oplog entry should vote for commit immediately
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r-- | src/mongo/db/repl_index_build_state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl_index_build_state.h b/src/mongo/db/repl_index_build_state.h index 7dd90768bf2..11c712bf6de 100644 --- a/src/mongo/db/repl_index_build_state.h +++ b/src/mongo/db/repl_index_build_state.h @@ -262,6 +262,9 @@ struct ReplIndexBuildState { // Protects the state below. mutable Mutex mutex = MONGO_MAKE_LATCH("ReplIndexBuildState::mutex"); + // Whether all the requested index(es) are already built on this node. + bool alreadyHasIndexesBuilt = false; + // Secondaries do not set this information, so it is only set on primaries or on // transition to primary. boost::optional<CommitQuorumOptions> commitQuorum; |