couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1035971 - /couchdb/trunk/src/couchdb/couch_httpd_view.erl
Date Wed, 17 Nov 2010 10:33:08 GMT
Author: jan
Date: Wed Nov 17 10:33:07 2010
New Revision: 1035971

URL: http://svn.apache.org/viewvc?rev=1035971&view=rev
Log:
Add stale to parse_view_param/2 for consistency.

Principle of least surprise.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_view.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_view.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_view.erl?rev=1035971&r1=1035970&r2=1035971&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_view.erl Wed Nov 17 10:33:07 2010
@@ -358,6 +358,8 @@ validate_view_query(limit, Value, Args) 
     Args#view_query_args{limit=Value};
 validate_view_query(list, Value, Args) ->
     Args#view_query_args{list=Value};
+validate_view_query(stale, ok, Args) ->
+    Args#view_query_args{stale=ok};
 validate_view_query(stale, _, Args) ->
     Args;
 validate_view_query(descending, true, Args) ->



Mime
View raw message