aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-04 21:25:24 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-04 21:25:24 +0200
commita6adbdc0b0f90f122e5b58ca9bb7421c7b3989a0 (patch)
treeb533062e1fcd88c0bddba1510bcee3ae256b9665
parentMerge pull request #5111 (diff)
parentITS#8969 tweak mdb_page_split (diff)
downloadmonero-a6adbdc0b0f90f122e5b58ca9bb7421c7b3989a0.tar.xz
Merge pull request #5112
2a94ec22 ITS#8969 tweak mdb_page_split (Howard Chu)
-rw-r--r--external/db_drivers/liblmdb/mdb.c2
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) {