Skip to content

Commit

Permalink
Fix mistake in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 19, 2024
1 parent 10c78b8 commit cf3f7a3
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 @@ -272,10 +272,10 @@ 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)) {
TRACE << "epoch_id_to_be_recorded_ updated to " << to_be_epoch;
std::lock_guard<std::mutex> lock(mtx_epoch_file_);
if (to_be_epoch < epoch_id_to_be_recorded_.load()) {
break;
}
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(to_be_epoch);
TRACE << "epoch_id_record_finished_ updated to " << to_be_epoch;
Expand Down

0 comments on commit cf3f7a3

Please sign in to comment.