From owner-svn-src-all@FreeBSD.ORG Thu Mar 6 07:44:45 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB870D49; Thu, 6 Mar 2014 07:44:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9972FAF9; Thu, 6 Mar 2014 07:44:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s267ijpF063637; Thu, 6 Mar 2014 07:44:45 GMT (envelope-from jlh@svn.freebsd.org) Received: (from jlh@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s267ijZb063636; Thu, 6 Mar 2014 07:44:45 GMT (envelope-from jlh@svn.freebsd.org) Message-Id: <201403060744.s267ijZb063636@svn.freebsd.org> From: Jeremie Le Hen Date: Thu, 6 Mar 2014 07:44:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262826 - head/lib/libc/db/btree X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 07:44:45 -0000 Author: jlh Date: Thu Mar 6 07:44:45 2014 New Revision: 262826 URL: http://svnweb.freebsd.org/changeset/base/262826 Log: Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage. While here, update the comment above with all the accepted flags. Reviewed by: silence on hackers@ MFC after: 2 weeks Modified: head/lib/libc/db/btree/bt_put.c Modified: head/lib/libc/db/btree/bt_put.c ============================================================================== --- head/lib/libc/db/btree/bt_put.c Thu Mar 6 07:44:08 2014 (r262825) +++ head/lib/libc/db/btree/bt_put.c Thu Mar 6 07:44:45 2014 (r262826) @@ -55,7 +55,7 @@ static EPG *bt_fast(BTREE *, const DBT * * dbp: pointer to access method * key: key * data: data - * flag: R_NOOVERWRITE + * flag: R_NOOVERWRITE, R_SETCURSOR, R_CURSOR * * Returns: * RET_ERROR, RET_SUCCESS and RET_SPECIAL if the key is already in the @@ -91,6 +91,7 @@ __bt_put(const DB *dbp, DBT *key, const switch (flags) { case 0: case R_NOOVERWRITE: + case R_SETCURSOR: break; case R_CURSOR: /*