diff options
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp | 4 |
1 files changed, 2 insertions, 2 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 410be70aff1..a9368bd1616 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 @@ -174,8 +174,8 @@ getDataSizeInfoForCollections(OperationContext* opCtx, return dataSizeInfoMap; } -const CollectionDataSizeInfoForBalancing getDataSizeInfoForCollection(OperationContext* opCtx, - const NamespaceString& nss) { +CollectionDataSizeInfoForBalancing getDataSizeInfoForCollection(OperationContext* opCtx, + const NamespaceString& nss) { const auto coll = Grid::get(opCtx)->catalogClient()->getCollection(opCtx, nss); std::vector<CollectionType> vec{coll}; return std::move(getDataSizeInfoForCollections(opCtx, vec).at(nss)); |