mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-10 03:04:14 +08:00
mdbx: backport - fix mdbx_pnl_search().
This commit is contained in:
parent
912728a322
commit
337f7589f8
@ -650,8 +650,8 @@ static unsigned __hot mdbx_pnl_search(MDBX_PNL pnl, pgno_t id) {
|
||||
while (n > 0) {
|
||||
unsigned pivot = n >> 1;
|
||||
cursor = base + pivot + 1;
|
||||
val = MDBX_PNL_ASCENDING ? mdbx_cmp2int(pnl[cursor], id)
|
||||
: mdbx_cmp2int(id, pnl[cursor]);
|
||||
val = MDBX_PNL_ASCENDING ? mdbx_cmp2int(id, pnl[cursor])
|
||||
: mdbx_cmp2int(pnl[cursor], id);
|
||||
|
||||
if (val < 0) {
|
||||
n = pivot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user