From fc87d405f1636d2241306584189f6b1266bbb833 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 7 Nov 2013 23:38:15 +0100 Subject: [PATCH] Fix MDB_MAXKEYSIZE doc: Account for MDB_DUPSORT. A node may need room for [key, subpage with 2 items] = 3 keys. --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 19d5f20a5d..484ab2ce04 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -373,7 +373,7 @@ static txnid_t mdb_debug_start; * * We require that keys all fit onto a regular page. This limit * could be raised a bit further if needed; to something just - * under (page size / #MDB_MINKEYS). + * under (page size / #MDB_MINKEYS / 3). * * Note that data items in an #MDB_DUPSORT database are actually keys * of a subDB, so they're also limited to this size. -- 2.39.5