diff options
author | Magnus Ahltorp <map@kth.se> | 2015-04-07 22:15:22 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-04-08 18:20:57 +0200 |
commit | 950442da625b22e5e033f4955f61a2a4efbd487f (patch) | |
tree | 4324366d7fe866b7c5029dca904adf305eba2a2b /src/db.erl | |
parent | 16520e4f8e9ac02d213455f213fe84ed0a705448 (diff) |
perm:ensurefile now only does fsync only when sync flag is set
Closes CATLFISH-35
Diffstat (limited to 'src/db.erl')
-rw-r--r-- | src/db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ add(LeafHash, Data) -> -spec add_entryhash(binary(), binary()) -> ok. add_entryhash(LeafHash, EntryHash) -> - ok = perm:ensurefile(entryhash_root_path(), EntryHash, LeafHash), + ok = perm:ensurefile_nosync(entryhash_root_path(), EntryHash, LeafHash), ok. -spec add_index_nosync(binary(), non_neg_integer()) -> ok. |