From a697d23b924a47084501caee38365970f89852d3 Mon Sep 17 00:00:00 2001 From: William Schultz Date: Tue, 14 Apr 2020 16:59:47 -0400 Subject: SERVER-44068 Add a 'restartHeartbeats' replication test command --- src/mongo/db/repl/repl_set_commands.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mongo/db/repl/repl_set_commands.cpp') diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp index b3a687f0f73..48e54214d83 100644 --- a/src/mongo/db/repl/repl_set_commands.cpp +++ b/src/mongo/db/repl/repl_set_commands.cpp @@ -160,6 +160,9 @@ public: result.append("lastStableRecoveryTimestamp", ts.get()); } return true; + } else if (cmdObj.hasElement("restartHeartbeats")) { + replCoord->restartHeartbeats_forTest(); + return true; } Status status = replCoord->checkReplEnabledForCommand(&result); -- cgit v1.2.1