Skip to content

Commit

Permalink
Fix thread race (#2360)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Fix data race.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN authored Dec 12, 2024
1 parent 3357129 commit 7418b98
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 7418b98

Please sign in to comment.