summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
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,