summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-01-28 22:41:15 +0100
committerLinus Nordberg <linus@nordberg.se>2015-02-27 02:29:16 +0100
commit08a4b1ab4faa22630aee32acf34a62f006ef0726 (patch)
tree77d5510d094a6e3eb4e3c7d11211a3b65f967138 /src/db.erl
parent6fdc0f0ae77d6aaefd175277fa8355089f41806a (diff)
Delay fsync for index writes
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 0541678..0361aaf 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -181,7 +181,7 @@ handle_call(stop, _From, State) ->
handle_call({add_index_nosync, {LeafHash, Index}}, _From, State) ->
ok = perm:ensurefile_nosync(indexforhash_root_path(),
LeafHash, integer_to_binary(Index)),
- ok = index:add(index_path(), Index, LeafHash),
+ ok = index:add_nosync(index_path(), Index, LeafHash),
{reply, ok, State}.
indexforhash_sync(LeafHash, Index) ->