summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbcommands_generic.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-03-26 14:31:33 -0400
committerSpencer T Brody <spencer@10gen.com>2012-06-12 16:51:25 -0400
commit9ab21eeb9443c41455a18f3ff7016166a16a6425 (patch)
tree4aca471161d3d3fa8b3fd49111f467f4566625ce /src/mongo/db/dbcommands_generic.cpp
parent665c1cfeac637465bb4ed8d24b7b76cec835fbea (diff)
downloadmongo-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.cpp6
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 ";