summaryrefslogtreecommitdiffstats
path: root/lib/libc/db
diff options
context:
space:
mode:
authorjlh <jlh@FreeBSD.org>2014-03-06 07:44:45 +0000
committerjlh <jlh@FreeBSD.org>2014-03-06 07:44:45 +0000
commitf274b4a2eee4e4e5fc2fda701555e754de49076a (patch)
treeab6945b3cc397ac3df3426f6dcaaf26d70c88451 /lib/libc/db
parentf3886439faaff3938349ca37da9df706cd3458ff (diff)
downloadFreeBSD-src-f274b4a2eee4e4e5fc2fda701555e754de49076a.zip
FreeBSD-src-f274b4a2eee4e4e5fc2fda701555e754de49076a.tar.gz
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
Diffstat (limited to 'lib/libc/db')
-rw-r--r--lib/libc/db/btree/bt_put.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/btree/bt_put.c b/lib/libc/db/btree/bt_put.c
index e4016c0..d4bc3aa 100644
--- a/lib/libc/db/btree/bt_put.c
+++ b/lib/libc/db/btree/bt_put.c
@@ -55,7 +55,7 @@ static EPG *bt_fast(BTREE *, const DBT *, const DBT *, int *);
* 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 DBT *data, u_int flags)
switch (flags) {
case 0:
case R_NOOVERWRITE:
+ case R_SETCURSOR:
break;
case R_CURSOR:
/*
OpenPOWER on IntegriCloud