mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-28 02:58:49 +08:00
mdbx: исправление GET_MULTIPLE
для случая одного значения.
Регрессия была внесена коммитом d94f34b2c0f9575e8fce0b7affff41d756bd1e99.
This commit is contained in:
parent
6cfb2935f6
commit
e754b442a2
@ -16987,10 +16987,8 @@ static __hot int cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
|
||||
}
|
||||
rc = MDBX_SUCCESS;
|
||||
if (unlikely(C_INITIALIZED != (mc->mc_xcursor->mx_cursor.mc_flags &
|
||||
(C_INITIALIZED | C_EOF)))) {
|
||||
rc = MDBX_NOTFOUND;
|
||||
(C_INITIALIZED | C_EOF))))
|
||||
break;
|
||||
}
|
||||
goto fetch_multiple;
|
||||
case MDBX_NEXT_MULTIPLE:
|
||||
if (unlikely(!data))
|
||||
@ -17006,8 +17004,6 @@ static __hot int cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
|
||||
page_numkeys(mx->mc_pg[mx->mc_top]) * mx->mc_db->md_xsize;
|
||||
data->iov_base = page_data(mx->mc_pg[mx->mc_top]);
|
||||
mx->mc_ki[mx->mc_top] = (indx_t)page_numkeys(mx->mc_pg[mx->mc_top]) - 1;
|
||||
} else {
|
||||
rc = MDBX_NOTFOUND;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user