On 2026/07/05 16:49, Christian Pfeiffer via Postfix-users wrote:
I had already posted on here a couple of days ago on the matter but it
got missed or so
Hi Christian,
Yes, you had already flagged this -- thank you!. My apologies, I had
forgotten already and replied to today's thread.
The patch I made for Arch downstream patch that has been in this thread already
does precisely that.
I'm not sure it does. On line 50 of the gist you linked you have:
+ mdb_txn_abort(slmdb->txn);
The [docs for mdb_txn_abord] indicate that this will "Abandon all the
operations of the transaction instead of saving them."
The [docs-for-mdb_drop] indicate that the dropping of a table is a
'transaction'.
Put together: by using `mdb_txn_abort` that "drop" transaction does not
get committed, but gets abandoned. That, I suppose, would also be the
cause for the double entries: No dropping of the table, and when you
rewrite the table, it keeps the original entries.
However, there's still one more glitch or so with it that I haven't
debugged yet. That's why I had asked for comments in my mail a few days ago.
See above.
I hope this is correct, and helps!
Kind regards,
Edmund Lodewijks
[docs-for-mdb_txn_abort]:
http://www.lmdb.tech/doc/group__mdb.html#ga73a5938ae4c3239ee11efa07eb22b882
[docs-for-mdb_drop]:
http://www.lmdb.tech/doc/group__mdb.html#gab966fab3840fc54a6571dfb32b00f2db
--
Edmund Lodewijks <[email protected]>
TZ: UTC+2 / GMT+2
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]