diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2021-10-27 21:34:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-27 22:19:58 +0000 |
commit | 0cceba6f04b95f3652de84c2f1f4ab2a644dba6e (patch) | |
tree | 6671a328a415819f63b55be0d86390853eba0ac5 /src/mongo/db/repl/topology_coordinator.cpp | |
parent | 637b7ad320dc66908b2e468bb8f862ab81b328c5 (diff) | |
download | mongo-0cceba6f04b95f3652de84c2f1f4ab2a644dba6e.tar.gz |
SERVER-54909 Report last durable and last applied operation wall times for all members in replSetGetStatus
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator.cpp')
-rw-r--r-- | src/mongo/db/repl/topology_coordinator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/topology_coordinator.cpp b/src/mongo/db/repl/topology_coordinator.cpp index a3df552f4df..68791c08a5d 100644 --- a/src/mongo/db/repl/topology_coordinator.cpp +++ b/src/mongo/db/repl/topology_coordinator.cpp @@ -1888,6 +1888,8 @@ void TopologyCoordinator::prepareStatusResponse(const ReplSetStatusArgs& rsStatu appendOpTime(&bb, "optime", lastOpApplied); bb.appendDate("optimeDate", Date_t::fromDurationSinceEpoch(Seconds(lastOpApplied.getSecs()))); + bb.appendDate("lastAppliedWallTime", it->getLastAppliedWallTime()); + bb.appendDate("lastDurableWallTime", it->getLastDurableWallTime()); } if (!_syncSource.empty() && !_iAmPrimary()) { @@ -1946,6 +1948,9 @@ void TopologyCoordinator::prepareStatusResponse(const ReplSetStatusArgs& rsStatu bb.appendDate("optimeDurableDate", Date_t::fromDurationSinceEpoch( Seconds(it->getHeartbeatDurableOpTime().getSecs()))); + + bb.appendDate("lastAppliedWallTime", it->getLastAppliedWallTime()); + bb.appendDate("lastDurableWallTime", it->getLastDurableWallTime()); } bb.appendDate("lastHeartbeat", it->getLastHeartbeat()); bb.appendDate("lastHeartbeatRecv", it->getLastHeartbeatRecv()); |