Skip to content

Commit

Permalink
replay: explcitly flush when replaying flushes
Browse files Browse the repository at this point in the history
To more closely model the captured workload, explicitly flush the memtable
after committing a flush batch.
  • Loading branch information
jbowens committed Feb 3, 2023
1 parent 47a88dd commit 115cde7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions replay/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,10 @@ func (r *Runner) applyWorkloadSteps(ctx context.Context) error {
if err := step.flushBatch.Commit(&pebble.WriteOptions{Sync: false}); err != nil {
return err
}
_, err := r.d.AsyncFlush()
if err != nil {
return err
}
r.stepsApplied <- step
case ingestStepKind:
if err := r.d.Ingest(step.tablesToIngest); err != nil {
Expand Down

0 comments on commit 115cde7

Please sign in to comment.