diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2022-09-21 17:48:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-03 17:58:33 +0000 |
commit | 6770ec060b02629e3c2c2a10c782c0907c0d9334 (patch) | |
tree | 5730a72e42735e00daf128d6b4f5de31ea785016 | |
parent | 62271b8469b68d654282acc7e288d29f2446d012 (diff) | |
download | mongo-6770ec060b02629e3c2c2a10c782c0907c0d9334.tar.gz |
SERVER-69037 fix incorrect calculation of bytes in MiB
(cherry picked from commit d743e0d165a063e3beba322c3a52903170ca7770)
-rw-r--r-- | src/mongo/db/query/sbe_plan_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/sbe_plan_cache.cpp b/src/mongo/db/query/sbe_plan_cache.cpp index b699387cc47..c8944057639 100644 --- a/src/mongo/db/query/sbe_plan_cache.cpp +++ b/src/mongo/db/query/sbe_plan_cache.cpp @@ -43,8 +43,8 @@ const auto sbePlanCacheDecoration = ServiceContext::declareDecoration<std::unique_ptr<sbe::PlanCache>>(); size_t convertToSizeInBytes(const plan_cache_util::PlanCacheSizeParameter& param) { - constexpr size_t kBytesInMB = 1014 * 1024; - constexpr size_t kMBytesInGB = 1014; + constexpr size_t kBytesInMB = 1024 * 1024; + constexpr size_t kMBytesInGB = 1024; double sizeInMB = param.size; |