You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2012/02/09 14:38:58 UTC

git commit: JSON encode start seq number in _changes requests

Updated Branches:
  refs/heads/master 970f01836 -> 597de1b99


JSON encode start seq number in _changes requests

This ensures replication from BigCouch 0.4 works.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/597de1b9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/597de1b9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/597de1b9

Branch: refs/heads/master
Commit: 597de1b994e2ca3bf3d828646578ac75910cd26d
Parents: 970f018
Author: Filipe David Borba Manana <fd...@apache.org>
Authored: Thu Feb 9 13:18:38 2012 +0000
Committer: Filipe David Borba Manana <fd...@apache.org>
Committed: Thu Feb 9 13:19:48 2012 +0000

----------------------------------------------------------------------
 .../src/couch_replicator_api_wrap.erl              |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/597de1b9/src/couch_replicator/src/couch_replicator_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator/src/couch_replicator_api_wrap.erl b/src/couch_replicator/src/couch_replicator_api_wrap.erl
index 42f393e..dcd6ca8 100644
--- a/src/couch_replicator/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator/src/couch_replicator_api_wrap.erl
@@ -314,7 +314,7 @@ changes_since(#httpdb{headers = Headers1} = HttpDb, Style, StartSeq,
     true ->
         [{"feed", "continuous"}]
     end ++ [
-        {"style", atom_to_list(Style)}, {"since", couch_util:to_list(StartSeq)},
+        {"style", atom_to_list(Style)}, {"since", ?JSON_ENCODE(StartSeq)},
         {"heartbeat", integer_to_list(HeartBeat)}
     ],
     DocIds = get_value(doc_ids, Options),