Bug: corfurl:read_repair_chain() should use trim when it encounters error_trimmed

This commit is contained in:
Scott Lystig Fritchie 2014-02-20 21:38:02 +09:00
parent fd32bcb308
commit 370c57b78a

View file

@ -130,7 +130,7 @@ read_repair_chain(Epoch, LPN, [Head|Rest] = Chain) ->
error_badepoch;
error_trimmed ->
%% TODO: robustify
[ok = case corfurl_flu:fill(flu_pid(X), Epoch, LPN) of
[ok = case corfurl_flu:trim(flu_pid(X), Epoch, LPN) of
ok -> ok;
error_trimmed -> ok;
Else -> Else