mdbx: use MDB_SET_KEY inside mdbx_replace() for libfpta.

This commit is contained in:
Leo Yuriev
2017-01-27 03:18:51 +03:00
parent a148bcea70
commit 72de33c8e9
2 changed files with 9 additions and 7 deletions

6
mdbx.h
View File

@@ -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);
/** @} */