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/01 14:06:04 UTC
[03/11] 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/839ad2df
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/tree/839ad2df
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/diff/839ad2df
Branch: refs/heads/windsor-merge
Commit: 839ad2df150fccd13acdf317fc21d58a63169eaa
Parents: 679b134
Author: Benjamin Bastian <be...@gmail.com>
Authored: Tue Oct 15 11:50:07 2013 -0700
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 1 13:01:57 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/839ad2df/src/global_changes_httpd.erl
----------------------------------------------------------------------
diff --git a/src/global_changes_httpd.erl b/src/global_changes_httpd.erl
index 0bbc534..c05338b 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),