summaryrefslogtreecommitdiff
path: root/db/repl
diff options
context:
space:
mode:
authorKristina Chodorow <kristina@10gen.com>2010-10-14 17:14:05 -0400
committerKristina Chodorow <kristina@10gen.com>2010-10-14 17:14:23 -0400
commitde7e99dcf5bd825e6128164a33a7f75aacd42c2c (patch)
tree4344d42a279ac488a5198cf6fc56534572689417 /db/repl
parent50cad63cc1f00a5ae2f3c7a01069339ed000cafd (diff)
downloadmongo-de7e99dcf5bd825e6128164a33a7f75aacd42c2c.tar.gz
master->secondary on stepdown SERVER-1681
Diffstat (limited to 'db/repl')
-rw-r--r--db/repl/rs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/db/repl/rs.cpp b/db/repl/rs.cpp
index 77fc04ff183..0e73278a4e1 100644
--- a/db/repl/rs.cpp
+++ b/db/repl/rs.cpp
@@ -67,9 +67,7 @@ namespace mongo {
void ReplSetImpl::relinquish() {
if( box.getState().primary() ) {
log() << "replSet relinquishing primary state" << rsLog;
- changeState(MemberState::RS_RECOVERING);
- // SERVER-1681:
- //changeState(MemberState::RS_SECONDARY);
+ changeState(MemberState::RS_SECONDARY);
if( closeOnRelinquish ) {
/* close sockets that were talking to us so they don't blithly send many writes that will fail