mdbx: rename internal flags & fields for clarity.

Change-Id: I79d6d8e88b0b4c30cbb8a464ca17f07dc2ab44c6
This commit is contained in:
Leonid Yuriev
2020-07-05 15:22:41 +03:00
parent 0fb127b935
commit 5dbb0b4cfe
3 changed files with 153 additions and 124 deletions

8
mdbx.h
View File

@@ -2746,10 +2746,10 @@ LIBMDBX_API int mdbx_dbi_dupsort_depthmask(MDBX_txn *txn, MDBX_dbi dbi,
* discarding result from the last argument.
*
* Returns A non-zero error value on failure and 0 on success. */
#define MDBX_TBL_DIRTY 0x01 /* DB was written in this txn */
#define MDBX_TBL_STALE 0x02 /* Named-DB record is older than txnID */
#define MDBX_TBL_FRESH 0x04 /* Named-DB handle opened in this txn */
#define MDBX_TBL_CREAT 0x08 /* Named-DB handle created in this txn */
#define MDBX_DBI_DIRTY 0x01 /* DB was written in this txn */
#define MDBX_DBI_STALE 0x02 /* Named-DB record is older than txnID */
#define MDBX_DBI_FRESH 0x04 /* Named-DB handle opened in this txn */
#define MDBX_DBI_CREAT 0x08 /* Named-DB handle created in this txn */
LIBMDBX_API int mdbx_dbi_flags_ex(MDBX_txn *txn, MDBX_dbi dbi, unsigned *flags,
unsigned *state);
LIBMDBX_API int mdbx_dbi_flags(MDBX_txn *txn, MDBX_dbi dbi, unsigned *flags);