diff options
author | Alya Berciu <alya.berciu@mongodb.com> | 2022-09-14 12:36:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-14 15:07:54 +0000 |
commit | 60706428cdc4f89864a1c524ebb518f5932a6bd8 (patch) | |
tree | aab96b53344a0a73b6daffc2cf69c6516f30d7e7 | |
parent | aa15763f05f85402aebd6c1b5ed30ec3184cbb86 (diff) | |
download | mongo-60706428cdc4f89864a1c524ebb518f5932a6bd8.tar.gz |
SERVER-69639 Fix const qualified function in ce_interpolation_test
-rw-r--r-- | src/mongo/db/query/ce/ce_interpolation_test.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/query/ce/ce_interpolation_test.cpp b/src/mongo/db/query/ce/ce_interpolation_test.cpp index 152ac7480f3..3e79374b627 100644 --- a/src/mongo/db/query/ce/ce_interpolation_test.cpp +++ b/src/mongo/db/query/ce/ce_interpolation_test.cpp @@ -38,12 +38,9 @@ namespace { using namespace sbe; -const std::pair<value::TypeTags, value::Value> makeInt64Value(const int v) { - return std::make_pair(value::TypeTags::NumberInt64, value::bitcastFrom<int64_t>(v)); -}; - double estimateIntValCard(const ScalarHistogram& hist, const int v, const EstimationType type) { - const auto [tag, val] = makeInt64Value(v); + const auto [tag, val] = + std::make_pair(value::TypeTags::NumberInt64, value::bitcastFrom<int64_t>(v)); return estimate(hist, tag, val, type).card; }; |