Skip to content

Commit

Permalink
implement GC batching
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 30, 2023
1 parent 3189266 commit 493a18b
Show file tree
Hide file tree
Showing 3 changed files with 306 additions and 51 deletions.
2 changes: 1 addition & 1 deletion crates/re_arrow_store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl Clone for IndexedBucket {
}

impl IndexedBucket {
fn new(cluster_key: ComponentName, timeline: Timeline) -> Self {
pub(crate) fn new(cluster_key: ComponentName, timeline: Timeline) -> Self {
Self {
timeline,
inner: RwLock::new(IndexedBucketInner::default()),
Expand Down
3 changes: 2 additions & 1 deletion crates/re_arrow_store/src/store_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ mod tests {
view,
);

view.on_events(&store.gc(&GarbageCollectionOptions::gc_everything()).0);
let events = store.gc(&GarbageCollectionOptions::gc_everything()).0;
view.on_events(&events);

similar_asserts::assert_eq!(
GlobalCounts::new(
Expand Down
Loading

0 comments on commit 493a18b

Please sign in to comment.