From 370c57b78a6868609fee765b4d2285059a674dd5 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Thu, 20 Feb 2014 21:38:02 +0900 Subject: [PATCH] Bug: corfurl:read_repair_chain() should use trim when it encounters error_trimmed --- prototype/corfurl/src/corfurl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/corfurl/src/corfurl.erl b/prototype/corfurl/src/corfurl.erl index 3ec0418..9df2b6d 100644 --- a/prototype/corfurl/src/corfurl.erl +++ b/prototype/corfurl/src/corfurl.erl @@ -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