summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/health.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/health.cpp')
-rw-r--r--src/mongo/db/repl/health.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/health.cpp b/src/mongo/db/repl/health.cpp
index 7c2f85f6c87..a45809df732 100644
--- a/src/mongo/db/repl/health.cpp
+++ b/src/mongo/db/repl/health.cpp
@@ -446,6 +446,11 @@ namespace mongo {
bb.append("authenticated", false);
}
+ string syncingTo = m->hbinfo().syncingTo;
+ if (!syncingTo.empty()) {
+ bb.append("syncingTo", syncingTo);
+ }
+
v.push_back(bb.obj());
m = m->next();
}