mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 14:04:22 +01:00
Ensure the Arc<RefCell<Buffer>> in UringFile::pwrite remains alive until the io_uring write completes by referencing it in the completion callback. This prevents WAL file corruption where the correct buffer data was overwritten with stale memory (e.g., 00 18 27 xx instead of 37 7f 06 82). Validation: - Tested with limbo -v io_uring and WAL operations. - Verified with xxd and wal-browser. Signed-off-by: Daniel Boll <danielboll.academico@gmail.com>