mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
Protect err codes
This commit is contained in:
parent
5e3a3db1f2
commit
9860d5a43f
1 changed files with 6 additions and 6 deletions
|
|
@ -84,12 +84,12 @@ typedef enum MDB_cursor_op { /* cursor operations */
|
|||
/* return codes */
|
||||
/* BerkeleyDB uses -30800 to -30999, we'll go under them */
|
||||
#define MDB_SUCCESS 0
|
||||
#define MDB_KEYEXIST -30799 /* key/data pair already exists */
|
||||
#define MDB_NOTFOUND -30798 /* key/data pair not found (EOF) */
|
||||
#define MDB_PAGE_NOTFOUND -30797 /* Requested page not found */
|
||||
#define MDB_CORRUPTED -30796 /* Located page was wrong type */
|
||||
#define MDB_PANIC -30795 /* Update of meta page failed, probably I/O error */
|
||||
#define MDB_VERSION_MISMATCH -30794 /* Environment version mismatch */
|
||||
#define MDB_KEYEXIST (-30799) /* key/data pair already exists */
|
||||
#define MDB_NOTFOUND (-30798) /* key/data pair not found (EOF) */
|
||||
#define MDB_PAGE_NOTFOUND (-30797) /* Requested page not found */
|
||||
#define MDB_CORRUPTED (-30796) /* Located page was wrong type */
|
||||
#define MDB_PANIC (-30795) /* Update of meta page failed, probably I/O error */
|
||||
#define MDB_VERSION_MISMATCH (-30794) /* Environment version mismatch */
|
||||
|
||||
/* DB flags */
|
||||
#define MDB_REVERSEKEY 0x02 /* use reverse string keys */
|
||||
|
|
|
|||
Loading…
Reference in a new issue