Skip to content

Commit

Permalink
Fix thread race
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN committed Dec 12, 2024
1 parent 1e14308 commit f09f64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/invertedindex/memory_indexer.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,6 @@ private:
UniquePtr<BufWriter> buf_writer_;

SegmentIndexEntry *segment_index_entry_{nullptr};
SizeT mem_used_{0};
Atomic<SizeT> mem_used_{0};
};
} // namespace infinity

0 comments on commit f09f64e

Please sign in to comment.