https://bugs.openldap.org/show_bug.cgi?id=10529
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to christopher@gmerlin.de from comment #0)
When testing the OCaml bindings with lmdb 1.0 I encountered this assertion failure: at src/mdb.c:7588: Assertion 'root > 1' failed in mdb_page_search()")
It was triggered by:
- start transaction
- add new key-value
- commit transaction
- rollback transaction
- start read only transaction
- try to get any key -> assertion failure
Will look into this later.
On another note I notice that this fails with MDB_CANT_ROLLBACK:
- start transaction
- commit ¡EMPTY! transaction
Committing an empty transaction is a no-op. The txnID doesn't advance.
- rollback transaction -> MDB_CANT_ROLLBACK
There is nothing to roll back in that case.
Of course this is a nonsensical transaction. But nevertheless maybe this case should be mentioned in the documentation, too.