diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-03-26 14:31:33 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-06-12 16:51:25 -0400 |
commit | 9ab21eeb9443c41455a18f3ff7016166a16a6425 (patch) | |
tree | 4aca471161d3d3fa8b3fd49111f467f4566625ce /src/mongo/db/dbcommands_generic.cpp | |
parent | 665c1cfeac637465bb4ed8d24b7b76cec835fbea (diff) | |
download | mongo-9ab21eeb9443c41455a18f3ff7016166a16a6425.tar.gz |
Clean up ReplicaSetMonitor when the whole set has been down for a long time. SERVER-4581
Diffstat (limited to 'src/mongo/db/dbcommands_generic.cpp')
-rw-r--r-- | src/mongo/db/dbcommands_generic.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/dbcommands_generic.cpp b/src/mongo/db/dbcommands_generic.cpp index 2e85a4efb80..0cef5762a82 100644 --- a/src/mongo/db/dbcommands_generic.cpp +++ b/src/mongo/db/dbcommands_generic.cpp @@ -22,6 +22,7 @@ #include <time.h> #include "introspect.h" #include "btree.h" +#include "../client/dbclient_rs.h" #include "../util/lruishmap.h" #include "../util/md5.hpp" #include "../util/processinfo.h" @@ -243,6 +244,11 @@ namespace mongo { DBException::traceExceptions = cmdObj["traceExceptions"].Bool(); s++; } + if( cmdObj.hasElement( "replMonitorMaxFailedChecks" ) ) { + if( s == 0 ) result.append( "was", ReplicaSetMonitor::getMaxFailedChecks() ); + ReplicaSetMonitor::setMaxFailedChecks( cmdObj["replMonitorMaxFailedChecks"].Number() ); + s++; + } if( s == 0 && !found ) { errmsg = "no option found to set, use help:true to see options "; |