mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:04:13 +08:00
mdbx: fix minor typos.
Change-Id: Ib0c62eace9c766844a3f44124b525a3c6373c620
This commit is contained in:
parent
72c944974a
commit
497aa53e28
2
mdbx.h
2
mdbx.h
@ -1070,7 +1070,7 @@ LIBMDBX_API const char *mdbx_dump_val(const MDBX_val *key, char *const buf,
|
|||||||
* This flag may be changed at any time using mdbx_env_set_flags(). */
|
* This flag may be changed at any time using mdbx_env_set_flags(). */
|
||||||
#define MDBX_LIFORECLAIM 0x4000000u
|
#define MDBX_LIFORECLAIM 0x4000000u
|
||||||
|
|
||||||
/* Debuging option, fill/perturb released pages. */
|
/* Debugging option, fill/perturb released pages. */
|
||||||
#define MDBX_PAGEPERTURB 0x8000000u
|
#define MDBX_PAGEPERTURB 0x8000000u
|
||||||
|
|
||||||
/**** SYNC MODES ***************************************************************
|
/**** SYNC MODES ***************************************************************
|
||||||
|
@ -1166,7 +1166,7 @@ MDBX_INTERNAL_FUNC void mdbx_rthc_thread_dtor(void *ptr);
|
|||||||
/* Internal error codes, not exposed outside libmdbx */
|
/* Internal error codes, not exposed outside libmdbx */
|
||||||
#define MDBX_NO_ROOT (MDBX_LAST_ERRCODE + 10)
|
#define MDBX_NO_ROOT (MDBX_LAST_ERRCODE + 10)
|
||||||
|
|
||||||
/* Debuging output value of a cursor DBI: Negative in a sub-cursor. */
|
/* Debugging output value of a cursor DBI: Negative in a sub-cursor. */
|
||||||
#define DDBI(mc) \
|
#define DDBI(mc) \
|
||||||
(((mc)->mc_flags & C_SUB) ? -(int)(mc)->mc_dbi : (int)(mc)->mc_dbi)
|
(((mc)->mc_flags & C_SUB) ? -(int)(mc)->mc_dbi : (int)(mc)->mc_dbi)
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ enum actor_testcase {
|
|||||||
|
|
||||||
enum actor_status {
|
enum actor_status {
|
||||||
as_unknown,
|
as_unknown,
|
||||||
as_debuging,
|
as_debugging,
|
||||||
as_running,
|
as_running,
|
||||||
as_successful,
|
as_successful,
|
||||||
as_killed,
|
as_killed,
|
||||||
|
@ -413,7 +413,7 @@ int osal_actor_poll(mdbx_pid_t &pid, unsigned timeout) {
|
|||||||
else if (WIFSIGNALED(status))
|
else if (WIFSIGNALED(status))
|
||||||
childs[pid] = as_killed;
|
childs[pid] = as_killed;
|
||||||
else if (WIFSTOPPED(status))
|
else if (WIFSTOPPED(status))
|
||||||
childs[pid] = as_debuging;
|
childs[pid] = as_debugging;
|
||||||
else if (WIFCONTINUED(status))
|
else if (WIFCONTINUED(status))
|
||||||
childs[pid] = as_running;
|
childs[pid] = as_running;
|
||||||
else {
|
else {
|
||||||
|
@ -343,7 +343,7 @@ actor_status osal_actor_info(const mdbx_pid_t pid) {
|
|||||||
break;
|
break;
|
||||||
case EXCEPTION_BREAKPOINT:
|
case EXCEPTION_BREAKPOINT:
|
||||||
case EXCEPTION_SINGLE_STEP:
|
case EXCEPTION_SINGLE_STEP:
|
||||||
status = as_debuging;
|
status = as_debugging;
|
||||||
break;
|
break;
|
||||||
case STATUS_CONTROL_C_EXIT:
|
case STATUS_CONTROL_C_EXIT:
|
||||||
status = as_killed;
|
status = as_killed;
|
||||||
|
@ -47,8 +47,8 @@ const char *status2str(actor_status status) {
|
|||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
return "?!";
|
return "?!";
|
||||||
case as_debuging:
|
case as_debugging:
|
||||||
return "debuging";
|
return "debugging";
|
||||||
case as_running:
|
case as_running:
|
||||||
return "running";
|
return "running";
|
||||||
case as_successful:
|
case as_successful:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user