Recovery Tests

Some initial entropy tests showing loss of data from a corrupted CDB
file.
This commit is contained in:
martinsumner 2016-10-31 20:58:19 +00:00
parent b18f7fd1c1
commit 73004328e1
4 changed files with 77 additions and 6 deletions

View file

@ -314,6 +314,8 @@ handle_call({get, Bucket, Key, Tag}, _From, State) ->
Active = TS >= leveled_codec:integer_now(),
case {Active,
fetch_value(LedgerKey, Seqn, State#state.inker)} of
{_, not_present} ->
{reply, not_found, State};
{true, Object} ->
{reply, {ok, Object}, State};
_ ->