From 08a4b1ab4faa22630aee32acf34a62f006ef0726 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Wed, 28 Jan 2015 22:41:15 +0100 Subject: Delay fsync for index writes --- src/db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db.erl') 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) -> -- cgit v1.1