DB backend support for lmdb?
Steffen Nurpmeso
steffen at sdaoden.eu
Thu Jul 19 22:22:41 CEST 2018
Oh my goodness...
Steffen Nurpmeso wrote in <20180719193041.33VX0%steffen at sdaoden.eu>:
|Matthias Andree wrote in <9a51593a-a5ce-06f3-6070-af25b1a6db34 at an3e.de>:
||Am 18.07.2018 um 01:19 schrieb Matthias Andree:
||> Before doing further development, please switch to
||> ^/branches/lmdb-support and/or update. I'm heading for bed now that
||> r7064 has been committed.
||
||...make that r7065.
|
|All tests pass for me now.
Yes, but there is one little error nonetheless, as below.
Thank you, Matthias. I have just installed bogofilter/LMDB in ~/!
Ciao.
diff --git a/bogofilter/src/datastore_lmdb.c b/bogofilter/src/datastore_lmdb.c
index 6ea128c..728f0d2 100644
--- a/bogofilter/src/datastore_lmdb.c
+++ b/bogofilter/src/datastore_lmdb.c
@@ -332,6 +332,7 @@ a_bflm_txn_begin(void *vhandle){
fprintf(dbgout, "LMDB[%ld]: txn_begin(%p [%s])\n",
(long)getpid(), bflmp, bflmp->bflm_filepath);
+ bflmp->bflm_flags &= ~(a_BFLM_HAS_TXN | a_BFLM_DB_UNAVAIL);
jredo_txn:
e = mdb_txn_begin(bflmp->bflm_env, NULL,
(bflmp->bflm_flags & a_BFLM_RDONLY ? MDB_RDONLY : 0),
--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