This repository was archived by the owner on Oct 18, 2023. It is now read-only.
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
Shadow WAL: truncate on rollback #428
Open
Description
With #423, uncommitted transactions can be written to the shadow wal and potentially rolled back. The current implementation does not truncate the file if that happens. A small optimization could be to truncate the file occasionally if we detect that it contains too much garbage. Failing to truncate the file should not fail the rollback: it must remain an infallible operation.