Skip to content

Commit

Permalink
Rebase on main
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlou1554 committed Nov 9, 2024
1 parent 6f97425 commit 7a8d4df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions optd-persistent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions optd-persistent/src/cost_model/orm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ impl CostModelStorageLayer for BackendManager {
.await?;

// TODO(lanlou): consider the update conflict for latest_epoch_id in multiple threads
// Assume the txn fails to commit, and the epoch_id is updated. But the epoch_id
// is always increasing and won't be overwritten even if the record is deleted, it
// might be fine.
if insert_new_epoch {
self.latest_epoch_id
.store(epoch_id as usize, std::sync::atomic::Ordering::Relaxed);
Expand Down

0 comments on commit 7a8d4df

Please sign in to comment.