Skip to content

Commit

Permalink
fix(meta): fix time travel metadata for partial checkpoint (#18160) (#…
Browse files Browse the repository at this point in the history
…18162)

Co-authored-by: zwang28 <[email protected]>
  • Loading branch information
github-actions[bot] and zwang28 authored Aug 21, 2024
1 parent 963572a commit 116bf88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/meta/src/hummock/manager/time_travel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,13 @@ impl HummockManager {
hummock_epoch_to_version::Entity::insert(m)
.on_conflict(
OnConflict::column(hummock_epoch_to_version::Column::Epoch)
.update_columns([hummock_epoch_to_version::Column::VersionId])
// The existing row must be inserted by the common committed epoch of created MVs.
// While any duplicate row must be inserted by MVs still in creation.
// So the row shouldn't be updated.
.do_nothing()
.to_owned(),
)
.do_nothing()
.exec(txn)
.await?;
let mut version_sst_ids = None;
Expand Down

0 comments on commit 116bf88

Please sign in to comment.