From 61619b3142c1de8f60f91964ff2656054d4f11a6 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 10 May 2012 06:57:54 +0200 Subject: Imported Upstream version 2.0.5 --- db/repl/rs.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'db/repl/rs.cpp') diff --git a/db/repl/rs.cpp b/db/repl/rs.cpp index 23abc24..9181fe9 100644 --- a/db/repl/rs.cpp +++ b/db/repl/rs.cpp @@ -119,8 +119,6 @@ namespace mongo { return max; } - const bool closeOnRelinquish = true; - void ReplSetImpl::relinquish() { LOG(2) << "replSet attempting to relinquish" << endl; if( box.getState().primary() ) { @@ -129,9 +127,7 @@ namespace mongo { log() << "replSet relinquishing primary state" << rsLog; changeState(MemberState::RS_SECONDARY); - } - - if( closeOnRelinquish ) { + /* close sockets that were talking to us so they don't blithly send many writes that will fail with "not master" (of course client could check result code, but in case they are not) */ -- cgit v1.2.3