diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-12-09 11:21:50 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-12-10 18:33:41 -0500 |
commit | 98a7e7f9709413ce06f49b48dee98f7080505947 (patch) | |
tree | 967f77dd7247a37831d579e7a993c9b818ee20d8 /jstests/tool/restorewithauth.js | |
parent | 8e3fe7f38c3d1ae8e072839bd4e2aaf78e19783c (diff) | |
download | mongo-98a7e7f9709413ce06f49b48dee98f7080505947.tar.gz |
SERVER-16500 Change the meaning of getReplicationMode() to be constant after start up.
Previously, ReplicationCoordinator::getReplicationMode() returned modeNone if
the settings object indicated the node was part of a replica set, but no valid
replica set configuration had yet been discovered. With this change, the
settings object is the sole determinant of the return value of
getReplicationMode(). Callers that wish to know if a replica set member is
initialized should instead check ReplicationCoordinator::getMemberState(). If
the value is RS_STARTUP, then the node is not initialized with a replica set
config.
This has the side-effect of removing the mutex in ReplCoordinatorImpl from the
code path for this method.
Diffstat (limited to 'jstests/tool/restorewithauth.js')
0 files changed, 0 insertions, 0 deletions