summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Xie <jackson.xie@mongodb.com>2021-06-09 18:40:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-10 19:50:03 +0000
commitdd310a4a7df50368079b649367bedd520f9274ef (patch)
tree0ea3ef5463bc278b3aeb6dcd32ed26690857aa50
parent873f9aea8173963a9219721b2baefb2cd1c883d7 (diff)
downloadmongo-dd310a4a7df50368079b649367bedd520f9274ef.tar.gz
SERVER-49796 use in-class member initialization for _reversePos
-rw-r--r--src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp b/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp
index ef179985bfe..9203972b62c 100644
--- a/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp
+++ b/src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp
@@ -846,7 +846,7 @@ private:
UniqueIndexData _indexData;
UniqueIndexData::const_iterator _indexDataIt;
UniqueIndexData::const_iterator _indexDataEnd;
- size_t _reversePos;
+ size_t _reversePos = 0;
};
bool CursorUnique::advanceNextInternal() {