couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1035978 - in /couchdb/trunk/src/couchdb: couch_db.hrl couch_httpd_view.erl
Date Wed, 17 Nov 2010 10:58:24 GMT
Author: jan
Date: Wed Nov 17 10:58:23 2010
New Revision: 1035978

URL: http://svn.apache.org/viewvc?rev=1035978&view=rev
Log:
Obvious parsing of the stale view parameter part 2.

Thanks to Filipe for pointing this out to me.

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

Modified: couchdb/trunk/src/couchdb/couch_db.hrl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.hrl?rev=1035978&r1=1035977&r2=1035978&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.hrl (original)
+++ couchdb/trunk/src/couchdb/couch_db.hrl Wed Nov 17 10:58:23 2010
@@ -197,7 +197,8 @@
     stale = false,
     multi_get = false,
     callback = nil,
-    list = nil
+    list = nil,
+    stale = nil
 }).
 
 -record(view_fold_helper_funs, {

Modified: couchdb/trunk/src/couchdb/couch_httpd_view.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_view.erl?rev=1035978&r1=1035977&r2=1035978&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_view.erl Wed Nov 17 10:58:23 2010
@@ -360,6 +360,8 @@ 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, update_after, Args) ->
+    Args#view_query_args{stale=update_after};
 validate_view_query(stale, _, Args) ->
     Args;
 validate_view_query(descending, true, Args) ->



Mime
View raw message