diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-07-28 23:28:43 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-07-28 23:28:43 +0000 |
commit | 5accdbdf298af0a8a45287bcdc2cda804c9835bc (patch) | |
tree | 0390c7a5aa24ee64614c680d4129a7adb40708cf | |
parent | bbdce1780b71840abe3197422d697048e708146b (diff) |
don't require integer seqnums in the changes feed, COUCHDB-838
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980266 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/couchdb/couch_rep_changes_feed.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/couchdb/couch_rep_changes_feed.erl b/src/couchdb/couch_rep_changes_feed.erl index b1d3960d..4c7dc35a 100644 --- a/src/couchdb/couch_rep_changes_feed.erl +++ b/src/couchdb/couch_rep_changes_feed.erl @@ -273,12 +273,10 @@ handle_messages([], State) -> {noreply, State}; handle_messages([<<"{\"results\":[">>|Rest], State) -> handle_messages(Rest, State); -handle_messages([<<"]">>, <<"\"last_seq\":", LastSeqStr/binary>>], State) -> - LastSeq = list_to_integer(?b2l(hd(re:split(LastSeqStr, "}")))), - handle_feed_completion(State#state{last_seq = LastSeq}); -handle_messages([<<"{\"last_seq\":", LastSeqStr/binary>>], State) -> - LastSeq = list_to_integer(?b2l(hd(re:split(LastSeqStr, "}")))), - handle_feed_completion(State#state{last_seq = LastSeq}); +handle_messages([<<"]">>, <<"\"last_seq\":", _/binary>>], State) -> + handle_feed_completion(State); +handle_messages([<<"{\"last_seq\":", _/binary>>], State) -> + handle_feed_completion(State); handle_messages([Chunk|Rest], State) -> #state{ count = Count, |