Skip to content

Commit

Permalink
Avoid SyncWAL if flushing during shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
anand1976 committed Jul 10, 2024
1 parent b6c3495 commit 213aeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_stress_tool/db_stress_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,7 @@ void StressTest::Reopen(ThreadState* thread) {
// crash-recovery verification does. Therefore it always expects no data loss
// and we should ensure no data loss in testing.
// TODO(hx235): eliminate the FlushWAL(true /* sync */)/SyncWAL() below
if (!FLAGS_disable_wal) {
if (!FLAGS_disable_wal && !FLAGS_avoid_flush_during_shutdown) {
Status s;
if (FLAGS_manual_wal_flush_one_in > 0) {
s = db_->FlushWAL(/*sync=*/true);
Expand Down

0 comments on commit 213aeb4

Please sign in to comment.