You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2010/07/29 01:28:44 UTC
svn commit: r980266 -
/couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl
Author: kocolosk
Date: Wed Jul 28 23:28:43 2010
New Revision: 980266
URL: http://svn.apache.org/viewvc?rev=980266&view=rev
Log:
don't require integer seqnums in the changes feed, COUCHDB-838
Modified:
couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl
Modified: couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl?rev=980266&r1=980265&r2=980266&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl Wed Jul 28 23:28:43 2010
@@ -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,