From 4e954f8ae83d5b39736bab2da0eaf2bdf5ee3961 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 28 Jan 2014 14:27:27 +0100 Subject: [PATCH] ITS#7793 mdb_cursor_put(): Fix MDB_CURRENT. Ignore key, broken by 5bda3565a9bfaa6cd54053faeafcc06da15bc00c and some older code. Document and clarify MDB_CURRENT usage. Also affects non-MDB_CURRENT put() with empty data and a key which matches by the mdb_set_compare function but not by memcmp. --- libraries/liblmdb/lmdb.h | 2 +- libraries/liblmdb/mdb.c | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 2ebd43f..2ece805 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -1333,7 +1333,7 @@ int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data, *