Skip to content

Commit

Permalink
Update memiavl/db_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <[email protected]>
  • Loading branch information
yihuang authored Aug 4, 2023
1 parent 2e7a2c7 commit 2618dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memiavl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func TestFastCommit(t *testing.T) {
},
}

// the bug reproduce when the wal segment is full and create a new one,
// the bug reproduce when the wal writing is slower than commit, that happens when wal segment is full and create a new one, the wal writing will slow down a little bit,
// segment size is 20m, each change set is 1m, so we need a bit more than 20 commits to reproduce.
for i := 0; i < 30; i++ {
_, _, err := db.Commit([]*NamedChangeSet{{Name: "test", Changeset: cs}})
Expand Down

0 comments on commit 2618dca

Please sign in to comment.