From 8d3b87896577a0381e8ec3000185b768ae184b86 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 20 Mar 2021 01:24:21 +0300 Subject: [PATCH] mdbx: fix minor spelling. Change-Id: Ibab66dc18c92b0ac4fa705e10befb34e268ee1f7 --- .github/actions/spelling/expect.txt | 3 +++ mdbx.h | 6 +++--- src/core.c | 2 +- src/internals.h | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index fbdfb7eb..d8840c6d 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -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 diff --git a/mdbx.h b/mdbx.h index c48de19b..3568a444 100644 --- a/mdbx.h +++ b/mdbx.h @@ -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. * diff --git a/src/core.c b/src/core.c index 980b4a5d..59a9e9ba 100644 --- a/src/core.c +++ b/src/core.c @@ -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; diff --git a/src/internals.h b/src/internals.h index a2f3d835..9b2168f8 100644 --- a/src/internals.h +++ b/src/internals.h @@ -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 */