You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Filippo Fadda (JIRA)" <ji...@apache.org> on 2013/07/23 01:18:48 UTC
[jira] [Commented] (COUCHDB-1858) X-Couch-Full-Commit is not
mentioned in _bulk_docs API
[ https://issues.apache.org/jira/browse/COUCHDB-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715841#comment-13715841 ]
Filippo Fadda commented on COUCHDB-1858:
----------------------------------------
Alexander, the description is also partially wrong: "The bulk document [...] document structure and information and . When"
new_edits is also missing.
There aren't default value for new_edits and all_or_nothing.
> X-Couch-Full-Commit is not mentioned in _bulk_docs API
> ------------------------------------------------------
>
> Key: COUCHDB-1858
> URL: https://issues.apache.org/jira/browse/COUCHDB-1858
> Project: CouchDB
> Issue Type: Documentation
> Components: Documentation
> Reporter: Filippo Fadda
> Assignee: Alexander Shorin
>
> 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({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 'docs'">>);
> DocsArray ->
> case couch_httpd:header_value(Req, "X-Couch-Full-Commit") of
> "true" ->
> Options = [full_commit];
> "false" ->
> Options = [delay_commit];
> _ ->
> Options = []
> end,
--
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: http://www.atlassian.com/software/jira