Skip to content

Commit

Permalink
Fix incorrect value in trace log message
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 19, 2024
1 parent 2a16ed6 commit 57b2719
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 @@ -274,8 +274,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 57b2719

Please sign in to comment.