Skip to content

Commit

Permalink
fix manifest incorrect WAL size
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Xu <[email protected]>
  • Loading branch information
Qi Xu committed Mar 22, 2024
1 parent cf0b090 commit c98e2f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/db_impl/db_impl_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,9 @@ IOStatus DBImpl::WriteToWAL(const WriteThread::WriteGroup& write_group,
}

for (auto& log : logs_) {
log.PrepareForSync();
io_s = log.writer->file()->Sync(immutable_db_options_.use_fsync);
log.FinishSync();
if (!io_s.ok()) {
break;
}
Expand Down

0 comments on commit c98e2f6

Please sign in to comment.