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 49a974a commit a980659
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 @@ -1529,7 +1529,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 a980659

Please sign in to comment.