hoytech / lmdbxx

C++17 wrapper for the LMDB embedded B+ tree database library
The Unlicense
51 stars 16 forks source link

Test fails with MDB_BAD_TXN on OpenBSD #6

Closed epsilon-0 closed 3 years ago

epsilon-0 commented 3 years ago

The full error message is

Failed with error: mdb_txn_begin: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid

The error happens at https://github.com/hoytech/lmdbxx/blob/master/check.cc#L257

hoytech commented 3 years ago

Thanks for the report! What versions of OpenBSD and LMDB, and also which C++ compiler and version are you using?

epsilon-0 commented 3 years ago

I am running OpenBSD -current (rolling release) with lmdb 0.9.29 and clang c++ compiler:

$ c++ --version
OpenBSD clang version 11.1.0
Target: amd64-unknown-openbsd6.9
Thread model: posix
InstalledDir: /usr/bin
hoytech commented 3 years ago

Hi! I fixed the test suite so it should now work on OpenBSD. There are some limitations to be aware of on this OS, though. Please see these docs I have just added.

https://github.com/hoytech/lmdbxx#openbsd

Thanks again for the report!

epsilon-0 commented 3 years ago

thanks a lot!!