mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:44:13 +08:00
mdbx: fix minor typos.
This commit is contained in:
parent
e989cb05ed
commit
2e0d2e65af
2
mdbx.h
2
mdbx.h
@ -1554,7 +1554,7 @@ MDBX_DEPRECATED static __inline int MDBX_MAP_RESIZED() {
|
|||||||
* mdbx_strerror_r() - is thread-safe since uses user-supplied buffer where
|
* mdbx_strerror_r() - is thread-safe since uses user-supplied buffer where
|
||||||
* appropriate. The returned string must NOT be modified
|
* appropriate. The returned string must NOT be modified
|
||||||
* by the application, since it may be pointer to internal
|
* by the application, since it may be pointer to internal
|
||||||
* constatn string. However, there is no restriction if the
|
* constant string. However, there is no restriction if the
|
||||||
* returned string points to the supplied buffer.
|
* returned string points to the supplied buffer.
|
||||||
*
|
*
|
||||||
* [in] err The error code.
|
* [in] err The error code.
|
||||||
|
@ -10040,12 +10040,12 @@ __cold int mdbx_is_readahead_reasonable(size_t volume, intptr_t redundancy) {
|
|||||||
#define ENV_USABLE_FLAGS (ENV_CHANGEABLE_FLAGS | ENV_CHANGELESS_FLAGS)
|
#define ENV_USABLE_FLAGS (ENV_CHANGEABLE_FLAGS | ENV_CHANGELESS_FLAGS)
|
||||||
|
|
||||||
#if ENV_INTERNAL_FLAGS & ENV_USABLE_FLAGS
|
#if ENV_INTERNAL_FLAGS & ENV_USABLE_FLAGS
|
||||||
#error "Opps, some flags overlapped or wrong"
|
#error "Oops, some flags overlapped or wrong"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (MDBX_ACCEDE | MDBX_CREATE) != ((DB_USABLE_FLAGS | DB_INTERNAL_FLAGS) & \
|
#if (MDBX_ACCEDE | MDBX_CREATE) != ((DB_USABLE_FLAGS | DB_INTERNAL_FLAGS) & \
|
||||||
(ENV_USABLE_FLAGS | ENV_INTERNAL_FLAGS))
|
(ENV_USABLE_FLAGS | ENV_INTERNAL_FLAGS))
|
||||||
#error "Opps, some flags overlapped or wrong"
|
#error "Oops, some flags overlapped or wrong"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Merge flags and avoid false MDBX_UTTERLY_NOSYNC */
|
/* Merge flags and avoid false MDBX_UTTERLY_NOSYNC */
|
||||||
|
@ -197,7 +197,7 @@ extern LIBMDBX_API const char *const mdbx_sourcery_anchor;
|
|||||||
#define CORE_DBS 2
|
#define CORE_DBS 2
|
||||||
#define MAX_DBI (INT16_MAX - CORE_DBS)
|
#define MAX_DBI (INT16_MAX - CORE_DBS)
|
||||||
#if MAX_DBI != MDBX_MAX_DBI
|
#if MAX_DBI != MDBX_MAX_DBI
|
||||||
#error "Opps, MAX_DBI != MDBX_MAX_DBI"
|
#error "Oops, MAX_DBI != MDBX_MAX_DBI"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Number of meta pages - also hardcoded elsewhere */
|
/* Number of meta pages - also hardcoded elsewhere */
|
||||||
@ -740,7 +740,7 @@ struct MDBX_txn {
|
|||||||
|
|
||||||
#if (TXN_FLAGS & MDBX_TXN_BEGIN_FLAGS) || \
|
#if (TXN_FLAGS & MDBX_TXN_BEGIN_FLAGS) || \
|
||||||
((MDBX_TXN_BEGIN_FLAGS | TXN_FLAGS) & MDBX_SHRINK_ALLOWED)
|
((MDBX_TXN_BEGIN_FLAGS | TXN_FLAGS) & MDBX_SHRINK_ALLOWED)
|
||||||
#error "Opps, some flags overlapped or wrong"
|
#error "Oops, some flags overlapped or wrong"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned mt_flags;
|
unsigned mt_flags;
|
||||||
@ -1315,10 +1315,10 @@ typedef struct MDBX_node {
|
|||||||
#define DB_INTERNAL_FLAGS DB_VALID
|
#define DB_INTERNAL_FLAGS DB_VALID
|
||||||
|
|
||||||
#if DB_INTERNAL_FLAGS & DB_USABLE_FLAGS
|
#if DB_INTERNAL_FLAGS & DB_USABLE_FLAGS
|
||||||
#error "Opps, some flags overlapped or wrong"
|
#error "Oops, some flags overlapped or wrong"
|
||||||
#endif
|
#endif
|
||||||
#if DB_PERSISTENT_FLAGS & ~DB_USABLE_FLAGS
|
#if DB_PERSISTENT_FLAGS & ~DB_USABLE_FLAGS
|
||||||
#error "Opps, some flags overlapped or wrong"
|
#error "Oops, some flags overlapped or wrong"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* max number of pages to commit in one writev() call */
|
/* max number of pages to commit in one writev() call */
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|
||||||
#ifndef MDBX_LOCKING
|
#ifndef MDBX_LOCKING
|
||||||
#error "Opps, MDBX_LOCKING is undefined!"
|
#error "Oops, MDBX_LOCKING is undefined!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__) && (MDBX_LOCKING == MDBX_LOCKING_POSIX2001 || \
|
#if defined(__APPLE__) && (MDBX_LOCKING == MDBX_LOCKING_POSIX2001 || \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user