diff options
author | Howard Chu <hyc@symas.com> | 2019-01-30 23:45:48 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2019-01-30 23:45:48 +0000 |
commit | 2a94ec22aa3cf2f1a40d8f733bbf4587397f7571 (patch) | |
tree | 4dd68b91b18e5e2f813b623f05472efc87158c2e /external | |
parent | Merge pull request #4988 (diff) | |
download | monero-2a94ec22aa3cf2f1a40d8f733bbf4587397f7571.tar.xz |
ITS#8969 tweak mdb_page_split
Bump up number of keys for which we use fine-grained splitpoint search
Diffstat (limited to 'external')
-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) { |