diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 17:38:16 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 17:38:16 -0400 |
commit | 9078eba70f6e459c960a2c6b7c988a83947c2506 (patch) | |
tree | 51c8f515a3b6ed6861fb1b528085f642be4c8399 | |
parent | 87645966131702d79888e6c60956028366ca2c95 (diff) | |
download | mongo-9078eba70f6e459c960a2c6b7c988a83947c2506.tar.gz |
actually use checkConsistency variable
-rw-r--r-- | s/config.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/s/config.cpp b/s/config.cpp index aae2786ccd2..65f56cbf4a7 100644 --- a/s/config.cpp +++ b/s/config.cpp @@ -515,10 +515,12 @@ namespace mongo { if ( ! _primary.ok() ) return false; - string errmsg; - if ( ! checkConfigServersConsistent( errmsg ) ){ - log( LL_ERROR ) << "config servers not in sync! " << errmsg << endl; - return false; + if ( checkConsistency ){ + string errmsg; + if ( ! checkConfigServersConsistent( errmsg ) ){ + log( LL_ERROR ) << "config servers not in sync! " << errmsg << endl; + return false; + } } return true; |