Skip to content

Commit

Permalink
Merge branch 'dev-umegane-1057' into dev-umegane-1034
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 19, 2024
2 parents ee64e95 + 57b2719 commit 28a61ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ void datastore::update_min_epoch_id(bool from_switch_epoch) { // NOLINT(readabi
TRACE << "epoch_id_to_be_recorded_ updated to " << 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());
TRACE << "epoch_id_record_finished_ updated to " << to_be_epoch;
auto recorded_epoch = epoch_id_to_be_recorded_.load();
epoch_id_record_finished_.store(recorded_epoch);
TRACE << "epoch_id_record_finished_ updated to " << recorded_epoch;
break;
}
}
Expand Down

0 comments on commit 28a61ff

Please sign in to comment.