Skip to content

Commit

Permalink
fix epoch_id_record_finished_ handling in datastore::update_min_epoch…
Browse files Browse the repository at this point in the history
…_id()
  • Loading branch information
t-horikawa committed Dec 19, 2024
1 parent 27cd7df commit 002cbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void datastore::update_min_epoch_id(bool from_switch_epoch) { // NOLINT(readabi
if (epoch_id_to_be_recorded_.compare_exchange_strong(old_epoch_id, to_be_epoch)) {
std::lock_guard<std::mutex> lock(mtx_epoch_file_);
write_epoch_to_file(static_cast<epoch_id_type>(to_be_epoch));
epoch_id_record_finished_.store(epoch_id_to_be_recorded_.load());
epoch_id_record_finished_.store(to_be_epoch);
break;
}
}
Expand Down

0 comments on commit 002cbf8

Please sign in to comment.