mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 22:09:03 +08:00
mdbx: use MDB_SET_KEY inside mdbx_replace() for libfpta.
This commit is contained in:
6
mdbx.h
6
mdbx.h
@@ -227,8 +227,10 @@ int mdbx_cursor_eof(MDB_cursor *mc);
|
||||
|
||||
int mdbx_replace(MDB_txn *txn, MDB_dbi dbi,
|
||||
MDB_val *key, MDB_val *new_data, MDB_val *old_data, unsigned flags);
|
||||
/* Same as mdbx_get(), but also return the count
|
||||
* of multi-values/duplicates for a given key. */
|
||||
/* Same as mdbx_get(), but:
|
||||
* 1) if values_count is not NULL, then returns the count
|
||||
* of multi-values/duplicates for a given key.
|
||||
* 2) updates the key for pointing to the actual key's data inside DB. */
|
||||
int mdbx_get_ex(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, int* values_count);
|
||||
|
||||
/** @} */
|
||||
|
Reference in New Issue
Block a user