mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-20 20:09:28 +08:00
mdbx: more spelling.
Change-Id: I45e42c1d8ef51f910b8e41279b92e54a6b2ce772
This commit is contained in:
10
src/core.c
10
src/core.c
@@ -38,7 +38,7 @@
|
||||
#include "internals.h"
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
* Internal inlines */
|
||||
* Internal inline functions */
|
||||
|
||||
MDBX_NOTHROW_CONST_FUNCTION static unsigned log2n(size_t value) {
|
||||
assert(value > 0 && value < INT32_MAX && is_powerof2(value));
|
||||
@@ -3584,7 +3584,7 @@ static __maybe_unused void mdbx_page_list(MDBX_page *mp) {
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/* Check if there is an inited xcursor, so XCURSOR_REFRESH() is proper */
|
||||
/* Check if there is an initialized xcursor, so XCURSOR_REFRESH() is proper */
|
||||
#define XCURSOR_INITED(mc) \
|
||||
((mc)->mc_xcursor && ((mc)->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED))
|
||||
|
||||
@@ -11057,7 +11057,7 @@ static int __hot cmp_int_align2(const MDBX_val *a, const MDBX_val *b) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Compare two items pointing at unsigneds of unknown alignment.
|
||||
/* Compare two items pointing at unsigned values with unknown alignment.
|
||||
*
|
||||
* This is also set as MDBX_INTEGERDUP|MDBX_DUPFIXED's MDBX_dbx.md_dcmp. */
|
||||
static int __hot cmp_int_unaligned(const MDBX_val *a, const MDBX_val *b) {
|
||||
@@ -14197,8 +14197,8 @@ static int mdbx_update_key(MDBX_cursor *mc, const MDBX_val *key) {
|
||||
char kbuf2[DKBUF_MAXKEYSIZE * 2 + 1];
|
||||
k2.iov_base = node_key(node);
|
||||
k2.iov_len = node_ks(node);
|
||||
mdbx_debug("update key %u (ofs %u) [%s] to [%s] on page %" PRIaPGNO, indx,
|
||||
ptr, mdbx_dump_val(&k2, kbuf2, sizeof(kbuf2)), DKEY(key),
|
||||
mdbx_debug("update key %u (offset %u) [%s] to [%s] on page %" PRIaPGNO,
|
||||
indx, ptr, mdbx_dump_val(&k2, kbuf2, sizeof(kbuf2)), DKEY(key),
|
||||
mp->mp_pgno);
|
||||
}
|
||||
|
||||
|
@@ -287,7 +287,7 @@ typedef struct MDBX_db {
|
||||
pgno_t md_overflow_pages; /* number of overflow pages */
|
||||
uint64_t md_seq; /* table sequence counter */
|
||||
uint64_t md_entries; /* number of data items */
|
||||
uint64_t md_mod_txnid; /* txnid of last commited modification */
|
||||
uint64_t md_mod_txnid; /* txnid of last committed modification */
|
||||
} MDBX_db;
|
||||
|
||||
/* database size-related parameters */
|
||||
@@ -943,7 +943,7 @@ struct MDBX_env {
|
||||
#define me_lfd me_lck_mmap.fd
|
||||
#define me_lck me_lck_mmap.lck
|
||||
|
||||
unsigned me_psize; /* DB page size, inited from me_os_psize */
|
||||
unsigned me_psize; /* DB page size, initialized from me_os_psize */
|
||||
uint8_t me_psize2log; /* log2 of DB page size */
|
||||
int8_t me_stuck_meta; /* recovery-only: target meta page or less that zero */
|
||||
unsigned me_os_psize; /* OS page size, from mdbx_syspagesize() */
|
||||
|
@@ -678,7 +678,7 @@ int main(int argc, char *argv[]) {
|
||||
if (present_sequence > sequence) {
|
||||
fprintf(stderr,
|
||||
"present sequence for '%s' value (%" PRIu64
|
||||
") is greated than loaded (%" PRIu64 ")\n",
|
||||
") is greater than loaded (%" PRIu64 ")\n",
|
||||
dbi_name, present_sequence, sequence);
|
||||
rc = MDBX_RESULT_TRUE;
|
||||
goto txn_abort;
|
||||
|
@@ -283,7 +283,7 @@ typedef pthread_mutex_t mdbx_fastmutex_t;
|
||||
defined(__amd64__) || defined(__amd64) || defined(_M_X64) || \
|
||||
defined(_M_AMD64) || defined(__IA32__) || defined(__INTEL__)
|
||||
#ifndef __ia32__
|
||||
/* LY: define neutral __ia32__ for x86 and x86-64 archs */
|
||||
/* LY: define neutral __ia32__ for x86 and x86-64 */
|
||||
#define __ia32__ 1
|
||||
#endif /* __ia32__ */
|
||||
#if !defined(__amd64__) && (defined(__x86_64) || defined(__x86_64__) || \
|
||||
|
Reference in New Issue
Block a user