summaryrefslogtreecommitdiff
path: root/db/repl
diff options
context:
space:
mode:
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