From 62f6260f8b471569288e1917d0c79104fbf898ec Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 28 Jul 2010 15:31:12 -0400 Subject: bugfix for is_progress_possible with q=1 --- src/fabric_view.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fabric_view.erl b/src/fabric_view.erl index d35283d7..49a3a55a 100644 --- a/src/fabric_view.erl +++ b/src/fabric_view.erl @@ -34,7 +34,7 @@ is_progress_possible(Counters) -> % the normal condition, adding to the tail Else end - end, Tail0, Rest), + end, if (Tail0+1) =:= (2 bsl 31) -> complete; true -> Tail0 end, Rest), (Start =:= 0) andalso (Result =:= complete). -spec remove_overlapping_shards(#shard{}, [{#shard{}, any()}]) -> -- cgit v1.2.3