Skip to content

Commit

Permalink
Fix slow test data race
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 committed Jan 3, 2025
1 parent 9e0b6cc commit f79eca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/invertedindex/memory_indexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ void MemoryIndexer::Dump(bool offline, bool spill) {
while (GetInflightTasks() > 0) {
CommitSync(100);
}
std::unique_lock lock(mutex_commit_);

String posting_file = Path(index_dir_) / (base_name_ + POSTING_SUFFIX + (spill ? SPILL_SUFFIX : ""));
String dict_file = Path(index_dir_) / (base_name_ + DICT_SUFFIX + (spill ? SPILL_SUFFIX : ""));
Expand Down

0 comments on commit f79eca1

Please sign in to comment.