Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8136D9807 for ; Thu, 9 Feb 2012 13:40:16 +0000 (UTC) Received: (qmail 80451 invoked by uid 500); 9 Feb 2012 13:40:16 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 80389 invoked by uid 500); 9 Feb 2012 13:40:15 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 80382 invoked by uid 99); 9 Feb 2012 13:40:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 13:40:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 13:40:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 526F531D924; Thu, 9 Feb 2012 13:39:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: fdmanana@apache.org To: commits@couchdb.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: JSON encode start seq number in _changes requests Message-Id: <20120209133952.526F531D924@tyr.zones.apache.org> Date: Thu, 9 Feb 2012 13:39:52 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Updated Branches: refs/heads/1.2.x 836cfff20 -> 3458eb462 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/3458eb46 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3458eb46 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3458eb46 Branch: refs/heads/1.2.x Commit: 3458eb4620c879ca786e8905697b8f0b31391205 Parents: 836cfff Author: Filipe David Borba Manana Authored: Thu Feb 9 13:18:38 2012 +0000 Committer: Filipe David Borba Manana Committed: Thu Feb 9 13:21:26 2012 +0000 ---------------------------------------------------------------------- src/couchdb/couch_api_wrap.erl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/3458eb46/src/couchdb/couch_api_wrap.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_api_wrap.erl b/src/couchdb/couch_api_wrap.erl index 0607d50..489e62b 100644 --- a/src/couchdb/couch_api_wrap.erl +++ b/src/couchdb/couch_api_wrap.erl @@ -315,7 +315,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),