Date: Tue, 4 Mar 2014 22:29:26 +0100 From: Jeremie Le Hen <jlh@FreeBSD.org> To: freebsd-hackers@FreeBSD.org Subject: RFC: patch to libc/db/btree/bt_put.c Message-ID: <20140304212925.GA47398@caravan.chchile.org>
next in thread | raw e-mail | index | archive | help
--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
I'd like to commit the following patch so DB_TREE's put() will accept
the R_SETCURSOR flag as documented in the dbopen(3) manpage.
Does that look good to you guy, or am I misreading the doc?
Also, does this look OK to MFC? I think so, but better ask than be
sorry.
--
Jeremie Le Hen
Scientists say the world is made up of Protons, Neutrons and Electrons.
They forgot to mention Morons.
--sm4nu43k4a2Rpi4c
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="db_btree_put_R_SETCURSOR.diff"
Index: btree/bt_put.c
===================================================================
--- btree/bt_put.c (revision 262751)
+++ btree/bt_put.c (working copy)
@@ -55,7 +55,7 @@ static EPG *bt_fast(BTREE *, const DBT *, const DB
* dbp: pointer to access method
* key: key
* data: data
- * flag: R_NOOVERWRITE
+ * flag: R_NOOVERWRITE, R_SETCURSOR
*
* 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 DBT *data,
switch (flags) {
case 0:
case R_NOOVERWRITE:
+ case R_SETCURSOR:
break;
case R_CURSOR:
/*
--sm4nu43k4a2Rpi4c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140304212925.GA47398>
