mdbx: fix minor spelling.

Change-Id: Ibab66dc18c92b0ac4fa705e10befb34e268ee1f7
This commit is contained in:
Leonid Yuriev 2021-03-20 01:24:21 +03:00
parent 9e5fe2c61d
commit 8d3b878965
4 changed files with 8 additions and 5 deletions

View File

@ -299,6 +299,7 @@ DHTML
diafile
dirname
DIRS
dirs
dirtylist
dirtyroom
diskutil
@ -670,6 +671,7 @@ INDXSIZE
ini
initd
INITED
inited
initialiser
inl
inlined
@ -1832,6 +1834,7 @@ WRLCK
WRONLY
wsize
WSL
wsl
wstr
wstring
WUNTRACED

6
mdbx.h
View File

@ -1037,12 +1037,12 @@ enum MDBX_env_flags_t {
*/
MDBX_NORDAHEAD = UINT32_C(0x800000),
/** Don't initialize malloc'd memory before writing to datafile.
/** Don't initialize malloc'ed memory before writing to datafile.
*
* Don't initialize malloc'd memory before writing to unused spaces in the
* Don't initialize malloc'ed memory before writing to unused spaces in the
* data file. By default, memory for pages written to the data file is
* obtained using malloc. While these pages may be reused in subsequent
* transactions, freshly malloc'd pages will be initialized to zeroes before
* transactions, freshly malloc'ed pages will be initialized to zeroes before
* use. This avoids persisting leftover data from other code (that used the
* heap and subsequently freed the memory) into the data file.
*

View File

@ -4144,7 +4144,7 @@ int mdbx_dcmp(const MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *a,
}
/* Allocate memory for a page.
* Re-use old malloc'd pages first for singletons, otherwise just malloc.
* Re-use old malloc'ed pages first for singletons, otherwise just malloc.
* Set MDBX_TXN_ERROR on failure. */
static MDBX_page *mdbx_page_malloc(MDBX_txn *txn, unsigned num) {
MDBX_env *env = txn->mt_env;

View File

@ -958,7 +958,7 @@ struct MDBX_env {
uint16_t *me_dbflags; /* array of flags from MDBX_db.md_flags */
unsigned *me_dbiseqs; /* array of dbi sequence numbers */
atomic_txnid_t *me_oldest; /* ID of oldest reader last time we looked */
MDBX_page *me_dp_reserve; /* list of malloc'd blocks for re-use */
MDBX_page *me_dp_reserve; /* list of malloc'ed blocks for re-use */
/* PNL of pages that became unused in a write txn */
MDBX_PNL me_retired_pages;
/* Number of freelist items that can fit in a single overflow page */