diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2018-11-19 14:04:53 -0500 |
---|---|---|
committer | Samy Lanka <samy.lanka@mongodb.com> | 2018-11-29 10:40:14 -0500 |
commit | d963ad9dcca8258434e955891cbeccac7aaf3ad4 (patch) | |
tree | b3afb59c36851de3ea95e5521772b4b38c2c4c4a /src/mongo/db/repl/replication_coordinator_impl.h | |
parent | 01d25f74348e8594e96a9e01dfca60538677d078 (diff) | |
download | mongo-d963ad9dcca8258434e955891cbeccac7aaf3ad4.tar.gz |
SERVER-37990 Replace locking requirements in 'ReadWriteAbility' with new semantics around ReplicationStateTransitionLock
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.h b/src/mongo/db/repl/replication_coordinator_impl.h index 31c39f32369..7691f3564fa 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.h +++ b/src/mongo/db/repl/replication_coordinator_impl.h @@ -588,17 +588,17 @@ private: private: // Flag that indicates whether writes to databases other than "local" are allowed. Used to // answer canAcceptWritesForDatabase() and canAcceptWritesFor() questions. In order to read - // it, must have either the RSTL in some intent mode or the replication coordinator mutex. - // To set it, must have both the RSTL in mode X and the replication coordinator mutex. + // it, must have either the RSTL or the replication coordinator mutex. To set it, must have + // both the RSTL in mode X and the replication coordinator mutex. // Always true for standalone nodes. bool _canAcceptNonLocalWrites; // Flag that indicates whether reads from databases other than "local" are allowed. Unlike // _canAcceptNonLocalWrites, above, this question is about admission control on secondaries. // Accidentally providing the prior value for a limited period of time is acceptable, except - // during rollback. In order to read it, must have the RSTL in some intent mode. To set it - // when transitioning into RS_ROLLBACK, must have the RSTL in mode X. Otherwise, no lock or - // mutex is necessary to set it. + // during rollback. In order to read it, must have the RSTL. To set it when transitioning + // into RS_ROLLBACK, must have the RSTL in mode X. Otherwise, no lock or mutex is necessary + // to set it. AtomicUInt32 _canServeNonLocalReads; }; |