mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-21 21:28:20 +08:00
mdbx: rename mdbx_page_spill
to mdbx_cursor_spill()
.
Change-Id: I71628951d29ea39055b920a76521a19cb10ac8da
This commit is contained in:
parent
266bb70b7d
commit
92527a5206
@ -4317,7 +4317,7 @@ mark_done:
|
|||||||
* [in] data For a put operation, the data being stored.
|
* [in] data For a put operation, the data being stored.
|
||||||
*
|
*
|
||||||
* Returns 0 on success, non-zero on failure. */
|
* Returns 0 on success, non-zero on failure. */
|
||||||
static int mdbx_page_spill(MDBX_cursor *mc, const MDBX_val *key,
|
static int mdbx_cursor_spill(MDBX_cursor *mc, const MDBX_val *key,
|
||||||
const MDBX_val *data) {
|
const MDBX_val *data) {
|
||||||
if (mc->mc_flags & C_SUB)
|
if (mc->mc_flags & C_SUB)
|
||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
@ -12980,7 +12980,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
|
|||||||
} else {
|
} else {
|
||||||
rdata = data;
|
rdata = data;
|
||||||
}
|
}
|
||||||
if (unlikely(rc2 = mdbx_page_spill(mc, key, rdata)))
|
if (unlikely(rc2 = mdbx_cursor_spill(mc, key, rdata)))
|
||||||
return rc2;
|
return rc2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13546,7 +13546,7 @@ int mdbx_cursor_del(MDBX_cursor *mc, MDBX_put_flags_t flags) {
|
|||||||
return MDBX_NOTFOUND;
|
return MDBX_NOTFOUND;
|
||||||
|
|
||||||
if (unlikely(!(flags & MDBX_NOSPILL) &&
|
if (unlikely(!(flags & MDBX_NOSPILL) &&
|
||||||
(rc = mdbx_page_spill(mc, NULL, NULL))))
|
(rc = mdbx_cursor_spill(mc, NULL, NULL))))
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
rc = mdbx_cursor_touch(mc);
|
rc = mdbx_cursor_touch(mc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user