You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/07/13 14:34:20 UTC
[05/10] couch-httpd commit: updated refs/heads/1994-merge-rcouch to
82e454a
fix view changes filter check
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/ffd029b3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/ffd029b3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/ffd029b3
Branch: refs/heads/1994-merge-rcouch
Commit: ffd029b3bf2f7b1886cbbde9942cc44e38eb6b6d
Parents: 393c533
Author: benoitc <bc...@gmail.com>
Authored: Sun Jul 6 09:10:19 2014 +0200
Committer: benoitc <bc...@gmail.com>
Committed: Sun Jul 13 14:33:20 2014 +0200
----------------------------------------------------------------------
src/couch_httpd_changes.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/ffd029b3/src/couch_httpd_changes.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_changes.erl b/src/couch_httpd_changes.erl
index 24dfe11..ad99ae7 100644
--- a/src/couch_httpd_changes.erl
+++ b/src/couch_httpd_changes.erl
@@ -177,10 +177,10 @@ handle_view_changes(ChangesArgs, #httpd{method=Method}=Req, Db) ->
{true, false} ->
handle_view_changes(Db, DDocId, VName, ViewOptions,
QueriesOptions, ChangesArgs, Req);
- {true, true} when ViewOptions /= [] orelse QueriesOptions /= [] ->
+ {true, true} when ViewOptions /= [] orelse QueriesOptions /= undefined ->
?LOG_ERROR("Tried to filter a non sequence indexed view~n",[]),
throw({bad_request, seqs_not_indexed});
- {false, _} when ViewOptions /= [] orelse QueriesOptions /= [] ->
+ {false, _} when ViewOptions /= [] orelse QueriesOptions /= undefined ->
?LOG_ERROR("Tried to filter a non sequence indexed view~n",[]),
throw({bad_request, seqs_not_indexed});
{_, _} ->