diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2017-05-04 15:18:56 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2017-05-04 15:18:56 -0400 |
commit | b2d70219b85a3462fb902618500b2f63f5f188b5 (patch) | |
tree | e6d7c3bfbfaec6a1dc0418672e41fdc1b6ac2956 /src/mongo/db/repl/repl_set_html_summary.cpp | |
parent | 32dccaea13fda911c5367287a39290706380941e (diff) | |
download | mongo-b2d70219b85a3462fb902618500b2f63f5f188b5.tar.gz |
Revert "SERVER-26990 Unify tracking of secondary state between replication and topology coordinators"
This reverts commit 6adc71f6cf069803f9c1288aef88ffe0d21c6ffe.
Diffstat (limited to 'src/mongo/db/repl/repl_set_html_summary.cpp')
-rw-r--r-- | src/mongo/db/repl/repl_set_html_summary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/repl_set_html_summary.cpp b/src/mongo/db/repl/repl_set_html_summary.cpp index d59a7c31649..14c2ff81b7d 100644 --- a/src/mongo/db/repl/repl_set_html_summary.cpp +++ b/src/mongo/db/repl/repl_set_html_summary.cpp @@ -187,7 +187,7 @@ const std::string ReplSetHtmlSummary::toHtmlString() const { // TODO(dannenberg): change timestamp to optime in V1 memberTable << td(memberHB.getLastHeartbeat() == Date_t() ? "?" - : memberHB.getHeartbeatAppliedOpTime().toString()); + : memberHB.getAppliedOpTime().toString()); } memberTable << _tr(); } @@ -201,7 +201,7 @@ const std::string ReplSetHtmlSummary::toHtmlString() const { const MemberConfig& selfConfig = _config.getMemberAt(_selfIndex); if (_primaryIndex >= 0 && _primaryIndex != _selfIndex && !selfConfig.isArbiter()) { - int lag = _hbData[_primaryIndex].getHeartbeatAppliedOpTime().getTimestamp().getSecs() - + int lag = _hbData[_primaryIndex].getAppliedOpTime().getTimestamp().getSecs() - _selfOptime.getTimestamp().getSecs(); s << tr("Lag: ", str::stream() << lag << " secs"); } |