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 6, 2023
1 parent e935ca0 commit 4eba71e
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 4eba71e

Please sign in to comment.