diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:25:24 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:25:24 +0200 |
commit | a6adbdc0b0f90f122e5b58ca9bb7421c7b3989a0 (patch) | |
tree | b533062e1fcd88c0bddba1510bcee3ae256b9665 | |
parent | Merge pull request #5111 (diff) | |
parent | ITS#8969 tweak mdb_page_split (diff) | |
download | monero-a6adbdc0b0f90f122e5b58ca9bb7421c7b3989a0.tar.xz |
Merge pull request #5112
2a94ec22 ITS#8969 tweak mdb_page_split (Howard Chu)
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c index 3b2745f95..8e67d5981 100644 --- a/external/db_drivers/liblmdb/mdb.c +++ b/external/db_drivers/liblmdb/mdb.c @@ -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. * 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 */ psize = 0; if (newindx <= split_indx || newindx >= nkeys) { |