Skip to content

Commit

Permalink
add wal log
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Xu <[email protected]>
  • Loading branch information
Qi Xu committed Feb 16, 2024
1 parent 5f62d0e commit 6d6d381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,8 @@ void DBImpl::MarkLogsSynced(uint64_t up_to, bool synced_dir,
wal.GetPreSyncSize() > 0) {
synced_wals->AddWal(wal.number, WalMetadata(wal.GetPreSyncSize()));
}
ROCKS_LOG_INFO(immutable_db_options_.info_log,
"deleting log %" PRIu64 " from logs_\n", wal.number);
logs_to_free_.push_back(wal.ReleaseWriter());
it = logs_.erase(it);
} else {
Expand Down

0 comments on commit 6d6d381

Please sign in to comment.