mdbx: rework reader_check0() and mutex recovery.

This commit is contained in:
Leo Yuriev
2017-04-21 16:02:27 +03:00
parent 41c51fdac2
commit 55226499a8
3 changed files with 57 additions and 50 deletions

View File

@@ -829,3 +829,6 @@ static __inline size_t roundup2(size_t value, size_t granularity) {
assert(is_power2(granularity));
return (value + granularity - 1) & ~(granularity - 1);
}
#define MDBX_IS_ERROR(rc) \
((rc) != MDBX_RESULT_TRUE && (rc) != MDBX_RESULT_FALSE)