summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-02-17 16:43:45 -0500
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-02-18 19:04:56 -0500
commit1ca56b6ce0ddb7bb7b8a8c64b439469c763986a0 (patch)
tree3f7a65288310b298f1076653d5983281592bd196
parentecffa7f73a4199848bffd276140781086c6a451d (diff)
downloadmongo-1ca56b6ce0ddb7bb7b8a8c64b439469c763986a0.tar.gz
SERVER-16968 Log when we receive a replSetStepDown command
So the logs can distinguish user-initiated stepdowns from system-initiated ones. (cherry picked from commit 48c60e81c925c7b6824509a10cb215f968936cb2)
-rw-r--r--src/mongo/db/repl/replset_commands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replset_commands.cpp b/src/mongo/db/repl/replset_commands.cpp
index 33bc0c723b8..20e3620daaf 100644
--- a/src/mongo/db/repl/replset_commands.cpp
+++ b/src/mongo/db/repl/replset_commands.cpp
@@ -423,6 +423,8 @@ namespace {
return appendCommandStatus(result, status);
}
+ log() << "Attempting to step down in response to replSetStepDown command";
+
status = getGlobalReplicationCoordinator()->stepDown(
txn,
force,