diff options
author | Jan Lehnardt <jan@apache.org> | 2010-11-17 10:58:23 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2010-11-17 10:58:23 +0000 |
commit | 7ca170cc9ac80502c877fcca3c930548b0cc5fe8 (patch) | |
tree | b7dd7c20a4730b3d8c91bf1d7205d7f55d9fe199 /src | |
parent | f5fc8fbc57bb99d59b5c0f15d1108e89946cf0e4 (diff) |
Obvious parsing of the stale view parameter part 2.
Thanks to Filipe for pointing this out to me.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1035978 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_db.hrl | 3 | ||||
-rw-r--r-- | src/couchdb/couch_httpd_view.erl | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index 74d2c630..ddde702f 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -197,7 +197,8 @@ stale = false, multi_get = false, callback = nil, - list = nil + list = nil, + stale = nil }). -record(view_fold_helper_funs, { diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl index 0a8c72f3..35cf5b04 100644 --- a/src/couchdb/couch_httpd_view.erl +++ b/src/couchdb/couch_httpd_view.erl @@ -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) -> |