Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B459E10CC0 for ; Thu, 8 Aug 2013 10:39:50 +0000 (UTC) Received: (qmail 54793 invoked by uid 500); 8 Aug 2013 10:39:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 54693 invoked by uid 500); 8 Aug 2013 10:39:49 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 54482 invoked by uid 99); 8 Aug 2013 10:39:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 10:39:48 +0000 Date: Thu, 8 Aug 2013 10:39:48 +0000 (UTC) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1858) X-Couch-Full-Commit is not mentioned in _bulk_docs API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733353#comment-13733353 ] Jan Lehnardt commented on COUCHDB-1858: --------------------------------------- `new_edits` is definitely a public API and should be documented :) > 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