couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filippo Fadda (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1858) X-Couch-Full-Commit is not mentioned in _bulk_docs API
Date Mon, 22 Jul 2013 22:36:49 GMT
Filippo Fadda created COUCHDB-1858:

             Summary: X-Couch-Full-Commit is not mentioned in _bulk_docs API
                 Key: COUCHDB-1858
             Project: CouchDB
          Issue Type: Documentation
          Components: Documentation
            Reporter: Filippo Fadda

The header field X-Couch-Full-Commit is not documented, but it's used. See the code below
and the documentation:

db_req(#httpd{method='POST',path_parts=[_,<<"_bulk_docs">>]}=Req, Db) ->
    couch_stats_collector:increment({httpd, bulk_requests}),
    couch_httpd:validate_ctype(Req, "application/json"),
    {JsonProps} = 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
    DocsArray ->
        case couch_httpd:header_value(Req, "X-Couch-Full-Commit") of
        "true" ->
            Options = [full_commit];
        "false" ->
            Options = [delay_commit];
        _ ->
            Options = []

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message