diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-12-28 15:57:04 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-12-29 10:54:45 -0500 |
commit | a0210b2e83641619eed60c8b19eb1abd7cf37fa1 (patch) | |
tree | 9c313f6551335deb95dc8fe723a9335ced5b254e /src/mongo/db/s/balancer | |
parent | 98f30b75b31c54464d5a907f435c15121a6c5353 (diff) | |
download | mongo-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.cpp | 8 | ||||
-rw-r--r-- | src/mongo/db/s/balancer/migration_manager.cpp | 2 |
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(); } |