Date: Thu, 6 Mar 2014 07:44:45 +0000 (UTC) From: Jeremie Le Hen <jlh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262826 - head/lib/libc/db/btree Message-ID: <201403060744.s267ijZb063636@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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: /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403060744.s267ijZb063636>