mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 23:24:14 +08:00
mdbx: refine MDBX_oom_func description.
This commit is contained in:
parent
0ef41bef2b
commit
2392c70e2b
6
mdbx.h
6
mdbx.h
@ -1534,9 +1534,9 @@ LIBMDBX_API int mdbx_txn_straggler(MDBX_txn *txn, int *percent);
|
|||||||
* [in] retry A retry number, less that zero for notify end of OOM-loop.
|
* [in] retry A retry number, less that zero for notify end of OOM-loop.
|
||||||
*
|
*
|
||||||
* Returns -1 on failure (reader is not killed),
|
* Returns -1 on failure (reader is not killed),
|
||||||
* 0 on a race condition (no such reader),
|
* 0 should wait or retry,
|
||||||
* 1 on success (reader was killed),
|
* 1 drop reader txn-lock (reading-txn was aborted),
|
||||||
* >1 on success (reader was SURE killed). */
|
* >1 drop reader registration (reader process was killed). */
|
||||||
typedef int(MDBX_oom_func)(MDBX_env *env, int pid, mdbx_tid_t tid, uint64_t txn,
|
typedef int(MDBX_oom_func)(MDBX_env *env, int pid, mdbx_tid_t tid, uint64_t txn,
|
||||||
unsigned gap, int retry);
|
unsigned gap, int retry);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user