summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2023-02-08 05:01:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-10 20:41:00 +0000
commit45bceb5adece464eb8d36abb45faa62556692111 (patch)
tree062c66a04babe806b04abfabfb300a3a93819c76
parentee9f6b93f9fa444255d4b5e81d842d89d9b27b0d (diff)
downloadmongo-45bceb5adece464eb8d36abb45faa62556692111.tar.gz
SERVER-73745 Zero initialize IndexKeyBucket struct
(cherry picked from commit ceb331a7471e03038f72d9ba7d9d3ac9f9d80ada)
-rw-r--r--src/mongo/db/catalog/index_consistency.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_consistency.h b/src/mongo/db/catalog/index_consistency.h
index dab1d2d8d97..0ae9d7c01b5 100644
--- a/src/mongo/db/catalog/index_consistency.h
+++ b/src/mongo/db/catalog/index_consistency.h
@@ -179,8 +179,8 @@ public:
private:
struct IndexKeyBucket {
- uint32_t indexKeyCount;
- uint32_t bucketSizeBytes;
+ uint32_t indexKeyCount = 0;
+ uint32_t bucketSizeBytes = 0;
};
IndexConsistency() = delete;