Skip to content

Commit

Permalink
Spine drop batches once physical compaction frontier is empty
Browse files Browse the repository at this point in the history
Once the physical compaction frontier is empty, there are no times
that can be represented in a a trace, which means that we're good to
drop all contents.

Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Jun 28, 2023
1 parent 14417e6 commit d607c68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/trace/implementations/spine_fueled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ where
}
}

if self.physical_frontier.is_empty() {
self.drop_batches();
}

// Having performed all of our work, if more than one batch remains reschedule ourself.
if !self.reduced() {
if let Some(activator) = &self.activator {
Expand Down

0 comments on commit d607c68

Please sign in to comment.