diff --git a/db/repl/consensus.cpp b/db/repl/consensus.cpp index 6401e85761b..3c6cdd2b273 100644 --- a/db/repl/consensus.cpp +++ b/db/repl/consensus.cpp @@ -359,7 +359,6 @@ namespace mongo { multiCommand(electCmd, L); { - RSBase::lock lk(&rs); for( list::iterator i = L.begin(); i != L.end(); i++ ) { DEV log() << "replSet elect res: " << i->result.toString() << rsLog; if( i->ok ) { diff --git a/db/repl/health.cpp b/db/repl/health.cpp index f4517fe3f74..04d18eecc60 100644 --- a/db/repl/health.cpp +++ b/db/repl/health.cpp @@ -346,10 +346,7 @@ namespace mongo { } const Member* ReplSetImpl::findById(unsigned id) const { - { - lock lk((RSBase*)this); - if( _self && id == _self->id() ) return _self; - } + if( _self && id == _self->id() ) return _self; for( Member *m = head(); m; m = m->next() ) if( m->id() == id )