Add TODO
This commit is contained in:
@@ -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
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user