mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx: speedup debug/checked build.
This resolves https://github.com/leo-yuriev/libmdbx/issues/80 Change-Id: I20596f87db17ce01379dae5f58f4c2b158a04a4a
This commit is contained in:
parent
c1ad86c368
commit
fb1d600597
@ -2488,8 +2488,10 @@ static int lcklist_detach_locked(MDBX_env *env) {
|
||||
} \
|
||||
} \
|
||||
\
|
||||
for (TYPE *scan = begin + 1; scan < end; ++scan) \
|
||||
assert(CMP(scan[-1], scan[0])); \
|
||||
if (mdbx_audit_enabled()) { \
|
||||
for (TYPE *scan = begin + 1; scan < end; ++scan) \
|
||||
assert(CMP(scan[-1], scan[0])); \
|
||||
} \
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
@ -2528,11 +2530,13 @@ static int lcklist_detach_locked(MDBX_env *env) {
|
||||
++first; \
|
||||
} \
|
||||
\
|
||||
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
|
||||
assert(CMP(*scan, item)); \
|
||||
for (TYPE_LIST *scan = first; scan < end; ++scan) \
|
||||
assert(!CMP(*scan, item)); \
|
||||
(void)begin, (void)end; \
|
||||
if (mdbx_audit_enabled()) { \
|
||||
for (TYPE_LIST *scan = begin; scan < first; ++scan) \
|
||||
assert(CMP(*scan, item)); \
|
||||
for (TYPE_LIST *scan = first; scan < end; ++scan) \
|
||||
assert(!CMP(*scan, item)); \
|
||||
(void)begin, (void)end; \
|
||||
} \
|
||||
\
|
||||
return first; \
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user