mdbx: check read/write txn overlapping for the same thread (MDBX_TXN_OVERLAPPING).

Change-Id: If3488df96bd1903d5e4ca0a1fea504075dbd4a20
This commit is contained in:
Leonid Yuriev
2020-02-01 23:39:39 +03:00
parent db27654330
commit 17fe5f106b
2 changed files with 22 additions and 3 deletions

3
mdbx.h
View File

@@ -1479,6 +1479,9 @@ typedef enum MDBX_cursor_op {
* e.g. a transaction that started by another thread. */
#define MDBX_THREAD_MISMATCH (-30416)
/* Overlapping read and write transactions for the same thread */
#define MDBX_TXN_OVERLAPPING (-30415)
/**** FUNCTIONS & RELATED STRUCTURES ******************************************/
/* Return a string describing a given error code.