Skip to content

Commit

Permalink
Update src/mito2/src/worker/handle_flush.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Yingwen <[email protected]>
  • Loading branch information
DevilExileSu and evenyag authored Sep 12, 2023
1 parent 289b68a commit 7b3a175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mito2/src/worker/handle_flush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl<S: LogStore> RegionWorkerLoop<S> {

// The flush task before truncating the region.
let version_data = region.version_control.current();
if let Some(truncate_entry_id) = version_data.version.truncate_entry_id {
if truncate_entry_id >= request.flushed_entry_id {
if let Some(truncated_entry_id) = version_data.version.truncated_entry_id {
if truncated_entry_id >= request.flushed_entry_id {
request.on_failure(RegionTruncatingSnafu { region_id }.build());
return;
}
Expand Down

0 comments on commit 7b3a175

Please sign in to comment.