Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
9860d5a4
Commit
9860d5a4
authored
Aug 15, 2011
by
Howard Chu
Browse files
Protect err codes
parent
5e3a3db1
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.h
View file @
9860d5a4
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment