@@ -49,6 +49,7 @@ class Segment final : public ReadOnlySegment {
4949
5050 explicit Segment (const boost::filesystem::path& path, bool no_deletes = false )
5151 : ReadOnlySegment(path, false , !no_deletes),
52+ lazy_load_mutex_(),
5253 deleted_keys_for_write_(),
5354 deleted_keys_during_merge_for_write_(),
5455 dictionary_loaded(false ),
@@ -61,9 +62,9 @@ class Segment final : public ReadOnlySegment {
6162
6263 explicit Segment (const boost::filesystem::path& path, const std::vector<std::shared_ptr<Segment>>& parent_segments)
6364 : ReadOnlySegment(path, false , false ),
65+ lazy_load_mutex_(),
6466 deleted_keys_for_write_(),
6567 deleted_keys_during_merge_for_write_(),
66- lazy_load_mutex_(),
6768 dictionary_loaded(false ),
6869 deletes_loaded(true ),
6970 in_merge_(false ),
@@ -184,9 +185,9 @@ class Segment final : public ReadOnlySegment {
184185 }
185186
186187 private:
188+ std::mutex lazy_load_mutex_;
187189 deleted_t deleted_keys_for_write_;
188190 deleted_t deleted_keys_during_merge_for_write_;
189- std::mutex lazy_load_mutex_;
190191 bool dictionary_loaded;
191192 bool deletes_loaded;
192193 bool in_merge_;
@@ -198,9 +199,9 @@ class Segment final : public ReadOnlySegment {
198199
199200 explicit Segment (const dictionary::dictionary_properties_t & dictionary_properties, bool no_deletes = false )
200201 : ReadOnlySegment(dictionary_properties, false , !no_deletes),
202+ lazy_load_mutex_(),
201203 deleted_keys_for_write_(),
202204 deleted_keys_during_merge_for_write_(),
203- lazy_load_mutex_(),
204205 dictionary_loaded(false ),
205206 deletes_loaded(no_deletes),
206207 in_merge_(false ),
0 commit comments