summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-28 15:31:12 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-07-28 17:33:33 -0400
commit62f6260f8b471569288e1917d0c79104fbf898ec (patch)
tree9ffbce730467ffc979843f25c532bca37244dd3b /src
parentf8c3d90e660d1f1bd4b65c7cacb6f7e748ce951e (diff)
bugfix for is_progress_possible with q=1
Diffstat (limited to 'src')
-rw-r--r--src/fabric_view.erl2
1 files changed, 1 insertions, 1 deletions
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()}]) ->