This commit is contained in:
2026-02-22 22:02:45 +01:00
parent aef44ce5f3
commit 107a9ba5b8
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
[ ] Add log compaction [ ] Add log compaction
[ ] Add log persistence [ ] Add log persistence
[ ] Add chunk locations to metadata [ ] Add chunk locations to metadata
[ ] fsync parent directory when renaming log
+2
View File
@@ -266,6 +266,8 @@ int wal_replace(WAL *wal, WALEntry *entries, int count)
if (rename_file_or_dir(tmp_path, wal_path) < 0) if (rename_file_or_dir(tmp_path, wal_path) < 0)
return -1; return -1;
// TODO: fsync on parent directory
// Reopen the WAL file and seek to end for future appends. // Reopen the WAL file and seek to end for future appends.
Handle new_handle; Handle new_handle;
if (file_open(wal_path, &new_handle) < 0) if (file_open(wal_path, &new_handle) < 0)