summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index 5823d880c14..7f35d2cfb31 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -528,6 +528,11 @@ public:
"primary.)\n"
"http://dochub.mongodb.org/core/replicasetcommands";
}
+
+ bool shouldCheckoutSession() const final {
+ return false;
+ }
+
CmdReplSetStepDown()
: ReplSetCommand("replSetStepDown"),
_stepDownCmdsWithForceExecutedMetric("commands.replSetStepDownWithForce.total",
@@ -685,7 +690,7 @@ public:
if (metadataResult.isOK()) {
// New style update position command has metadata, which may inform the
// upstream of a higher term.
- auto metadata = metadataResult.getValue();
+ const auto& metadata = metadataResult.getValue();
replCoord->processReplSetMetadata(metadata);
}