mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24: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
|
||||
* appropriate. The returned string must NOT be modified
|
||||
* 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.
|
||||
*
|
||||
* [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)
|
||||
|
||||
#if ENV_INTERNAL_FLAGS & ENV_USABLE_FLAGS
|
||||
#error "Opps, some flags overlapped or wrong"
|
||||
#error "Oops, some flags overlapped or wrong"
|
||||
#endif
|
||||
|
||||
#if (MDBX_ACCEDE | MDBX_CREATE) != ((DB_USABLE_FLAGS | DB_INTERNAL_FLAGS) & \
|
||||
(ENV_USABLE_FLAGS | ENV_INTERNAL_FLAGS))
|
||||
#error "Opps, some flags overlapped or wrong"
|
||||
#error "Oops, some flags overlapped or wrong"
|
||||
#endif
|
||||
|
||||
/* 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 MAX_DBI (INT16_MAX - CORE_DBS)
|
||||
#if MAX_DBI != MDBX_MAX_DBI
|
||||
#error "Opps, MAX_DBI != MDBX_MAX_DBI"
|
||||
#error "Oops, MAX_DBI != MDBX_MAX_DBI"
|
||||
#endif
|
||||
|
||||
/* Number of meta pages - also hardcoded elsewhere */
|
||||
@ -740,7 +740,7 @@ struct MDBX_txn {
|
||||
|
||||
#if (TXN_FLAGS & MDBX_TXN_BEGIN_FLAGS) || \
|
||||
((MDBX_TXN_BEGIN_FLAGS | TXN_FLAGS) & MDBX_SHRINK_ALLOWED)
|
||||
#error "Opps, some flags overlapped or wrong"
|
||||
#error "Oops, some flags overlapped or wrong"
|
||||
#endif
|
||||
|
||||
unsigned mt_flags;
|
||||
@ -1315,10 +1315,10 @@ typedef struct MDBX_node {
|
||||
#define DB_INTERNAL_FLAGS DB_VALID
|
||||
|
||||
#if DB_INTERNAL_FLAGS & DB_USABLE_FLAGS
|
||||
#error "Opps, some flags overlapped or wrong"
|
||||
#error "Oops, some flags overlapped or wrong"
|
||||
#endif
|
||||
#if DB_PERSISTENT_FLAGS & ~DB_USABLE_FLAGS
|
||||
#error "Opps, some flags overlapped or wrong"
|
||||
#error "Oops, some flags overlapped or wrong"
|
||||
#endif
|
||||
|
||||
/* max number of pages to commit in one writev() call */
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <atomic>
|
||||
|
||||
#ifndef MDBX_LOCKING
|
||||
#error "Opps, MDBX_LOCKING is undefined!"
|
||||
#error "Oops, MDBX_LOCKING is undefined!"
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) && (MDBX_LOCKING == MDBX_LOCKING_POSIX2001 || \
|
||||
|
Loading…
x
Reference in New Issue
Block a user