Details
-
Documentation
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The header field X-Couch-Full-Commit is not documented, but it's used. See the code below and the documentation:
http://docs.couchdb.org/en/latest/api/database.html#post-db-bulk-docs
db_req(#httpd
{method='POST',path_parts=[_,<<"_bulk_docs">>]}=Req, Db) ->
couch_stats_collector:increment(
),
couch_httpd:validate_ctype(Req, "application/json"),
= couch_httpd:json_body_obj(Req),
case couch_util:get_value(<<"docs">>, JsonProps) of
undefined ->
send_error(Req, 400, <<"bad_request">>, <<"Missing JSON list of 'docs'">>);
DocsArray ->
case couch_httpd:header_value(Req, "X-Couch-Full-Commit") of
"true" ->
Options = [full_commit];
"false" ->
Options = [delay_commit];
_ ->
Options = []
end,