diff options
author | Magnus Ahltorp <map@kth.se> | 2016-11-02 01:30:22 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2016-11-02 01:30:22 +0100 |
commit | 840228a10b84b7587cc40d1eb2a17d8586187f35 (patch) | |
tree | 47861093048eda5f0f8d93e2fa8d45e3590cafc6 /src/db.erl | |
parent | e51588399d15cde7ee283e1f72f99ddefa60f83d (diff) |
Don't crash in index.erl when index is invalid
Diffstat (limited to 'src/db.erl')
-rw-r--r-- | src/db.erl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -235,8 +235,8 @@ handle_call(stop, _From, State) -> {stop, normal, stopped, State}; handle_call({add_index_nosync_noreverse, {LeafHash, Index}}, _From, State) -> - ok = index:add_nosync(index_db, Index, LeafHash), - {reply, ok, State}. + Result = index:add_nosync(index_db, Index, LeafHash), + {reply, Result, State}. indexforhash_nosync(LeafHash, Index) -> ok = perm:addvalue(indexforhash_db, |