LMDB 1.0 / 0.9 database incompatibility
Steffen Nurpmeso
steffen at sdaoden.eu
Tue Jul 7 00:29:47 CEST 2026
Steffen Nurpmeso wrote in
<20260706222324.dp5nkn-T at steffen%sdaoden.eu>:
...
|1.0 says
|
| #ifndef MDB_MAXKEYSIZE
| #define MDB_MAXKEYSIZE 0
| #endif
|
| /** The maximum size of a key we can write to the environment\
| . */
| #if MDB_MAXKEYSIZE
| #define ENV_MAXKEY(env) (MDB_MAXKEYSIZE)
| #else
| #define ENV_MAXKEY(env) ((env)->me_maxkey)
| #endif
|
| ..
|
| int ESECT
| mdb_env_get_maxkeysize(MDB_env *env)
| {
| return ENV_MAXKEY(env);
|}
|
|So in how could the bogofilter commit fix anything, i really had
|too look deeper.
The code in 0.9 was exactly like so. I think it is
a documentation bug in LMDB thus. Will look tomorrow.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the bogofilter-dev
mailing list