]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/lmdb.h
Add error MDB_PROBLEM, replace some MDB_CORRUPTED
[openldap] / libraries / liblmdb / lmdb.h
index 85dc50d580c81ca2d44a3a075b736bfa64acbb6b..d30ab648b3d30fee2c095a0865ce61cebc64af60 100644 (file)
@@ -456,8 +456,10 @@ typedef enum MDB_cursor_op {
 #define MDB_BAD_VALSIZE                (-30781)
        /** The specified DBI was changed unexpectedly */
 #define MDB_BAD_DBI            (-30780)
+       /** Unexpected problem - txn should abort */
+#define MDB_PROBLEM            (-30779)
        /** The last defined error code */
-#define MDB_LAST_ERRCODE       MDB_BAD_DBI
+#define MDB_LAST_ERRCODE       MDB_PROBLEM
 /** @} */
 
 /** @brief Statistics for a database in the environment */