summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_rep_reader.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_rep_reader.erl b/src/couchdb/couch_rep_reader.erl
index 735ab742..e647cf87 100644
--- a/src/couchdb/couch_rep_reader.erl
+++ b/src/couchdb/couch_rep_reader.erl
@@ -174,6 +174,8 @@ calculate_new_high_seq(#state{requested_seqs=[], opened_seqs=[Open|_]}) ->
calculate_new_high_seq(#state{requested_seqs=[Req|_], opened_seqs=[Open|_]})
when Req < Open ->
0;
+calculate_new_high_seq(#state{opened_seqs=[]}) ->
+ 0;
calculate_new_high_seq(State) ->
hd(State#state.opened_seqs).