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

@ -249,7 +249,7 @@ handle_call({fetch, Key, SQN}, _From, State) ->
{reply, {ok, Value}, State};
Other ->
io:format("Unexpected failure to fetch value for" ++
"Key=~w SQN=~w with reason ~w", [Key, SQN, Other]),
"Key=~w SQN=~w with reason ~w~n", [Key, SQN, Other]),
{reply, not_present, State}
end;
handle_call({get, Key, SQN}, _From, State) ->