https://bugs.openldap.org/show_bug.cgi?id=10529
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #1177|0 |1 is obsolete| |
--- Comment #7 from Howard Chu hyc@openldap.org --- Created attachment 1180 --> https://bugs.openldap.org/attachment.cgi?id=1180&action=edit Proper test program
For future reference:
The use of err() in your program is invalid, since it reports on errno and liblmdb doesn't touch errno, it returns error codes as its function return value. Only libc sets errno.
You should simply copy the model of the existing LMDB test programs, like this one does.
Your later program is still invalid since it uses strerror() which is only valid for libc errno values. It should be using mdb_strerror(). All of this is already plainly stated in the LMDB documentation.