summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2022-05-23 18:57:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-23 20:05:30 +0000
commit329ab39ad8b441d95082d275c99dd5db95c496a6 (patch)
treeb0cc319441a53dde40a1596ad7ae9f0710834945 /src/mongo
parentc2f3bb6b7f263d91f9a5f212faec2417adadea97 (diff)
downloadmongo-329ab39ad8b441d95082d275c99dd5db95c496a6.tar.gz
SERVER-66677 fix clang-tidy toolchain v4 warning
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp4
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));