Skip to content

Commit

Permalink
fix(meta): fix contention (#18945)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 authored Oct 16, 2024
1 parent 0154e89 commit 360fe8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/meta/src/hummock/manager/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ impl HummockManager {
.iter()
.filter(|object_id| !tracked_object_ids.contains(object_id))
.collect_vec();
// This lock ensures that during commit_epoch or report_compact_tasks, where versioning lock is held,
// no new objects will be marked for deletion here.
let _versioning = self.versioning.read().await;
self.delete_object_tracker
.add(to_delete.iter().map(|id| **id));
to_delete.len()
Expand Down

0 comments on commit 360fe8a

Please sign in to comment.