doc: add missing fsync FIXME

This commit is contained in:
Joonas Koivunen 2020-09-03 19:05:20 +03:00
parent 08f6473c7b
commit 5588ef7348

View File

@ -215,6 +215,8 @@ impl BlockStore for FsBlockStore {
.parent()
.expect("we already have at least the shard parent");
// FIXME: missing fsync on directories; for example after winning the race we could
// fsync the parent and parent.parent
std::fs::create_dir_all(sharded)?;
let target = std::fs::OpenOptions::new()