summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-04-07 22:15:22 +0200
committerMagnus Ahltorp <map@kth.se>2015-04-07 22:15:22 +0200
commit282af9dbbc5aa62eef7b714ac9536b7e393555b8 (patch)
tree65c6b6c806ffc575f66ee71f2ffe9989c7525759 /src/db.erl
parentf39a8c41c58ab431a65a2bc54e6c730e25908c33 (diff)
perm:ensurefile now only does fsync only when sync flag is setsslverify
Closes CATLFISH-35
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.erl b/src/db.erl
index 707c8d3..f910079 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -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.