diff options
author | Kristina <kristina@10gen.com> | 2011-08-10 10:49:27 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-08-10 10:49:27 -0400 |
commit | 891b621617e7ea17a181a9fd506b66ba6c364ae2 (patch) | |
tree | 70bf08d69a1cd272f0f2815cf5af9d20150ec695 /db/repl | |
parent | 6beeeee10daa4e0addbd879bfb31b548a4e42409 (diff) | |
download | mongo-891b621617e7ea17a181a9fd506b66ba6c364ae2.tar.gz |
put maintenance mode in replsetgetstatus
Diffstat (limited to 'db/repl')
-rw-r--r-- | db/repl/health.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/repl/health.cpp b/db/repl/health.cpp index 711b457dd8c..e3e7b22d123 100644 --- a/db/repl/health.cpp +++ b/db/repl/health.cpp @@ -372,6 +372,12 @@ namespace mongo { bb.append("stateStr", box.getState().toString()); bb.appendTimestamp("optime", lastOpTimeWritten.asDate()); bb.appendDate("optimeDate", lastOpTimeWritten.getSecs() * 1000LL); + + int maintenance = _maintenanceMode; + if (maintenance) { + bb.append("maintenanceMode", maintenance); + } + string s = _self->lhb(); if( !s.empty() ) bb.append("errmsg", s); |