Bugfix for read repair: if trimmed, try fill first then trim
This commit is contained in:
parent
88d44722be
commit
5420e9ca1f
1 changed files with 4 additions and 4 deletions
|
@ -138,9 +138,9 @@ read_repair_chain(Epoch, LPN, [Head|Rest] = Chain) ->
|
||||||
error_badepoch;
|
error_badepoch;
|
||||||
error_trimmed ->
|
error_trimmed ->
|
||||||
%% TODO: robustify
|
%% TODO: robustify
|
||||||
[ok = case ok_or_trim(corfurl_flu:trim(flu_pid(X), Epoch, LPN)) of
|
[ok = case ok_or_trim(corfurl_flu:fill(flu_pid(X), Epoch, LPN)) of
|
||||||
ok -> ok;
|
ok -> ok;
|
||||||
error_unwritten -> ok_or_trim(corfurl_flu:fill(
|
error_overwritten -> ok_or_trim(corfurl_flu:trim(
|
||||||
flu_pid(X), Epoch, LPN));
|
flu_pid(X), Epoch, LPN));
|
||||||
Else -> Else
|
Else -> Else
|
||||||
end || X <- Rest],
|
end || X <- Rest],
|
||||||
|
|
Loading…
Reference in a new issue