summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/balancer
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-12-28 15:57:04 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-12-29 10:54:45 -0500
commita0210b2e83641619eed60c8b19eb1abd7cf37fa1 (patch)
tree9c313f6551335deb95dc8fe723a9335ced5b254e /src/mongo/db/s/balancer
parent98f30b75b31c54464d5a907f435c15121a6c5353 (diff)
downloadmongo-a0210b2e83641619eed60c8b19eb1abd7cf37fa1.tar.gz
SERVER-32480 Remove CatalogCache retrieval methods, which take StringData
Diffstat (limited to 'src/mongo/db/s/balancer')
-rw-r--r--src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp8
-rw-r--r--src/mongo/db/s/balancer/migration_manager.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp b/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
index 1ebe571a210..b0680182ac8 100644
--- a/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
+++ b/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
@@ -300,8 +300,8 @@ BalancerChunkSelectionPolicyImpl::selectSpecificChunkToMove(OperationContext* op
const auto& shardStats = shardStatsStatus.getValue();
auto routingInfoStatus =
- Grid::get(opCtx)->catalogCache()->getShardedCollectionRoutingInfoWithRefresh(opCtx,
- chunk.getNS());
+ Grid::get(opCtx)->catalogCache()->getShardedCollectionRoutingInfoWithRefresh(
+ opCtx, NamespaceString(chunk.getNS()));
if (!routingInfoStatus.isOK()) {
return routingInfoStatus.getStatus();
}
@@ -329,8 +329,8 @@ Status BalancerChunkSelectionPolicyImpl::checkMoveAllowed(OperationContext* opCt
auto shardStats = std::move(shardStatsStatus.getValue());
auto routingInfoStatus =
- Grid::get(opCtx)->catalogCache()->getShardedCollectionRoutingInfoWithRefresh(opCtx,
- chunk.getNS());
+ Grid::get(opCtx)->catalogCache()->getShardedCollectionRoutingInfoWithRefresh(
+ opCtx, NamespaceString(chunk.getNS()));
if (!routingInfoStatus.isOK()) {
return routingInfoStatus.getStatus();
}
diff --git a/src/mongo/db/s/balancer/migration_manager.cpp b/src/mongo/db/s/balancer/migration_manager.cpp
index 91af176fa8b..071e7363c47 100644
--- a/src/mongo/db/s/balancer/migration_manager.cpp
+++ b/src/mongo/db/s/balancer/migration_manager.cpp
@@ -183,7 +183,7 @@ Status MigrationManager::executeManualMigration(
auto routingInfoStatus =
Grid::get(opCtx)->catalogCache()->getShardedCollectionRoutingInfoWithRefresh(
- opCtx, migrateInfo.ns);
+ opCtx, NamespaceString(migrateInfo.ns));
if (!routingInfoStatus.isOK()) {
return routingInfoStatus.getStatus();
}