summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_commands.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-05-15 14:33:53 -0400
committerJudah Schvimer <judah@mongodb.com>2018-05-15 14:33:53 -0400
commit59f462046d76a7d8e48ec678ad03b489f5fcc56e (patch)
tree44b5e6de9d153f159b2fff98acf9a710a2ecabc7 /src/mongo/db/repl/repl_set_commands.cpp
parent689d52131f6ac1a446fe1b93647b11d0329c629c (diff)
downloadmongo-59f462046d76a7d8e48ec678ad03b489f5fcc56e.tar.gz
SERVER-33524 Fix kill secondaries standalone invariant checks to use a "recovery" timestamp command
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index ded7149946a..c315607369d 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -135,6 +135,14 @@ public:
uassertStatusOK(status);
return true;
+ } else if (cmdObj.hasElement("getLastStableCheckpointTimestamp")) {
+ boost::optional<Timestamp> ts =
+ StorageInterface::get(getGlobalServiceContext())
+ ->getLastStableCheckpointTimestamp(getGlobalServiceContext());
+ if (ts) {
+ result.append("lastStableCheckpointTimestamp", ts.get());
+ }
+ return true;
}
Status status = replCoord->checkReplEnabledForCommand(&result);