mdbx: add mdbx_osal_jitter() and mdbx_jitter4testing().

This commit is contained in:
Leo Yuriev
2017-04-27 15:18:33 +03:00
parent 40dee6f05f
commit 7204c46421
4 changed files with 36 additions and 13 deletions

View File

@@ -799,6 +799,14 @@ void mdbx_panic(const char *fmt, ...)
/*----------------------------------------------------------------------------*/
static __inline void mdbx_jitter4testing(bool tiny) {
#ifndef NDEBUG
mdbx_osal_jitter(tiny);
#else
(void)tiny;
#endif
}
int mdbx_reader_check0(MDB_env *env, int rlocked, int *dead);
#define METAPAGE_1(env) (&((MDB_metabuf *)(env)->me_map)->mb_metabuf.mm_meta)