summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-05-26 21:30:01 +0000
committerDamien F. Katz <damien@apache.org>2008-05-26 21:30:01 +0000
commit333d18cf62273159fe6c86e0f11d35511e6f8fb3 (patch)
tree8d15eabf94a9494683e83d1542bbb7336b333e3a /src/couchdb/couch_httpd.erl
parent19b77e8a73f4c1f9692c5da310da22c3f0df92c3 (diff)
Experimental functionality to increment database update seq, might go away, use at own risk.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660315 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r--src/couchdb/couch_httpd.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index ea614519..d90402e1 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -387,6 +387,14 @@ handle_db_request(Req, 'POST', {_DbName, Db, ["_missing_revs"]}) ->
{missing_revs, {obj, JsonResults}}
]});
+handle_db_request(Req, 'POST', {_DbName, Db, ["_increment_update_seq"]}) ->
+ % NOTE, use at own risk. This functionality is experimental
+ % and might go away entirely.
+ {ok, NewSeq} = couch_db:increment_update_seq(Db),
+ send_json(Req, {obj, [{ok, true},
+ {update_seq, NewSeq}
+ ]});
+
handle_db_request(Req, 'POST', {DbName, _Db, ["_temp_view"]}) ->
#view_query_args{
start_key = StartKey,