Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Dec 19, 2024
1 parent 27cd7df commit 10be3bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,12 @@ void datastore::update_min_epoch_id(bool from_switch_epoch) { // NOLINT(readabi
return;
}

// update informed_epoch_
to_be_epoch = upper_limit;
if (max_finished_epoch <= epoch_id_record_finished_.load()) {
// let's update informed_epoch_ with upper_limit
// as no WAL writer has been tool place from max_finished_epoch to upper_limit and
// epoch file has updated with max_finished_epoch.
to_be_epoch = upper_limit;
}
// In `informed_epoch_`, the update restriction based on the `from_switch_epoch` condition is intentionally omitted.
// Due to the interface specifications of Shirakami, it is necessary to advance the epoch even if the log channel
// is not updated. This behavior differs from `recorded_epoch_` and should be maintained as such.
Expand Down

0 comments on commit 10be3bc

Please sign in to comment.