You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/07 18:01:07 UTC

[05/10] git commit: Fix heartbeat=true for db_updates feeds

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 <be...@gmail.com>
Authored: Tue Oct 15 11:50:07 2013 -0700
Committer: Robert Newson <rn...@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),