diff options
author | Magnus Ahltorp <map@kth.se> | 2015-01-28 22:41:15 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-01-28 22:41:15 +0100 |
commit | 7d8d0e05da0d8d221254fd6c85145d327157845e (patch) | |
tree | fcd0abfd8eb09394038f8b524a04ca9e38c3470f /src/db.erl | |
parent | 1f2c976ea9924589fc3dc6c6b0f6d231e724a45f (diff) |
Delay fsync for index writes
Diffstat (limited to 'src/db.erl')
-rw-r--r-- | src/db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) -> |