mdbx: adds mdbx_replace() for libfpta.

This commit is contained in:
Leo Yuriev
2016-12-21 20:32:27 +03:00
parent 91bb3ab9fa
commit 9b38d8d422
2 changed files with 132 additions and 0 deletions

3
mdbx.h
View File

@@ -223,6 +223,9 @@ size_t mdbx_canary_get(MDB_txn *txn, mdbx_canary* canary);
* 0 otherwise or less that zero in error case. */
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);
/** @} */
#ifdef __cplusplus