From: Hallvard Furuseth Date: Tue, 28 Jan 2014 13:27:27 +0000 (+0100) Subject: ITS#7793 mdb_cursor_put(): Fix MDB_CURRENT. X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~132^2~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e954f8ae83d5b39736bab2da0eaf2bdf5ee3961;p=openldap 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. --- diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 2ebd43f3da..2ece80580d 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, *