mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #5112
2a94ec22
ITS#8969 tweak mdb_page_split (Howard Chu)
This commit is contained in:
commit
a6adbdc0b0
2
external/db_drivers/liblmdb/mdb.c
vendored
2
external/db_drivers/liblmdb/mdb.c
vendored
@ -9641,7 +9641,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
|
|||||||
* the split so the new page is emptier than the old page.
|
* the split so the new page is emptier than the old page.
|
||||||
* This yields better packing during sequential inserts.
|
* This yields better packing during sequential inserts.
|
||||||
*/
|
*/
|
||||||
if (nkeys < 20 || nsize > pmax/16 || newindx >= nkeys) {
|
if (nkeys < 32 || nsize > pmax/16 || newindx >= nkeys) {
|
||||||
/* Find split point */
|
/* Find split point */
|
||||||
psize = 0;
|
psize = 0;
|
||||||
if (newindx <= split_indx || newindx >= nkeys) {
|
if (newindx <= split_indx || newindx >= nkeys) {
|
||||||
|
Loading…
Reference in New Issue
Block a user