summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/active_move_primaries_registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/active_move_primaries_registry.cpp')
-rw-r--r--src/mongo/db/s/active_move_primaries_registry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/active_move_primaries_registry.cpp b/src/mongo/db/s/active_move_primaries_registry.cpp
index a02da4c899b..dcc15c2ceb6 100644
--- a/src/mongo/db/s/active_move_primaries_registry.cpp
+++ b/src/mongo/db/s/active_move_primaries_registry.cpp
@@ -73,7 +73,7 @@ StatusWith<ScopedMovePrimary> ActiveMovePrimariesRegistry::registerMovePrimary(
boost::optional<NamespaceString> ActiveMovePrimariesRegistry::getActiveMovePrimaryNss() {
stdx::lock_guard<stdx::mutex> lk(_mutex);
if (_activeMovePrimaryState) {
- return _activeMovePrimaryState->requestArgs.get_movePrimary();
+ return _activeMovePrimaryState->requestArgs.get_shardsvrMovePrimary();
}
return boost::none;
@@ -90,7 +90,7 @@ Status ActiveMovePrimariesRegistry::ActiveMovePrimaryState::constructErrorStatus
str::stream()
<< "Unable to start new movePrimary operation because this shard is currently "
"moving its primary for namespace "
- << requestArgs.get_movePrimary().ns()
+ << requestArgs.get_shardsvrMovePrimary()->ns()
<< " to "
<< requestArgs.getTo()};
}