couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [05/10] git commit: Fix heartbeat=true for db_updates feeds
Date Thu, 07 Aug 2014 16:01:07 GMT
Fix heartbeat=true for db_updates feeds

This commit fixes some bad case clause ordering. It'd match 'true' to a
variable when the variable should only either be false or a number.

BugzID: 24170


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

Branch: refs/heads/windsor-merge
Commit: 02256491292a18f46d86fac06168ba18c89f13b4
Parents: f429cd0
Author: Benjamin Bastian <benjamin.bastian@gmail.com>
Authored: Tue Oct 15 11:50:07 2013 -0700
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Aug 7 17:00:36 2014 +0100

----------------------------------------------------------------------
 src/global_changes_httpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/blob/02256491/src/global_changes_httpd.erl
----------------------------------------------------------------------
diff --git a/src/global_changes_httpd.erl b/src/global_changes_httpd.erl
index f4d01a3..643fb84 100644
--- a/src/global_changes_httpd.erl
+++ b/src/global_changes_httpd.erl
@@ -21,8 +21,8 @@ handle_global_changes_req(#httpd{method='GET'}=Req) ->
     Feed = couch_httpd:qs_value(Req, "feed", "normal"),
     Options = parse_global_changes_query(Req),
     Heartbeat = case lists:keyfind(heartbeat, 1, Options) of
-        {heartbeat, Other} -> Other;
         {heartbeat, true} -> 60000;
+        {heartbeat, Other} -> Other;
         false -> false
     end,
     chttpd:verify_is_server_admin(Req),


Mime
View raw message