LMDB  1.0
Macros
Return Codes

Macros

#define MDB_SUCCESS   0
 
#define MDB_KEYEXIST   (-30799)
 
#define MDB_NOTFOUND   (-30798)
 
#define MDB_PAGE_NOTFOUND   (-30797)
 
#define MDB_CORRUPTED   (-30796)
 
#define MDB_PANIC   (-30795)
 
#define MDB_VERSION_MISMATCH   (-30794)
 
#define MDB_INVALID   (-30793)
 
#define MDB_MAP_FULL   (-30792)
 
#define MDB_DBS_FULL   (-30791)
 
#define MDB_READERS_FULL   (-30790)
 
#define MDB_TLS_FULL   (-30789)
 
#define MDB_TXN_FULL   (-30788)
 
#define MDB_CURSOR_FULL   (-30787)
 
#define MDB_PAGE_FULL   (-30786)
 
#define MDB_MAP_RESIZED   (-30785)
 
#define MDB_INCOMPATIBLE   (-30784)
 
#define MDB_BAD_RSLOT   (-30783)
 
#define MDB_BAD_TXN   (-30782)
 
#define MDB_BAD_VALSIZE   (-30781)
 
#define MDB_BAD_DBI   (-30780)
 
#define MDB_PROBLEM   (-30779)
 
#define MDB_BAD_CHECKSUM   (-30778)
 
#define MDB_CRYPTO_FAIL   (-30777)
 
#define MDB_ENV_ENCRYPTION   (-30776)
 
#define MDB_TXN_PENDING   (-30775)
 
#define MDB_CANT_ROLLBACK   (-30774)
 
#define MDB_DBIS_BUSY   (-30773)
 
#define MDB_SHORT_WRITE   (-30772)
 
#define MDB_ENV_BUSY   (-30771)
 
#define MDB_IS_READONLY   (-30770)
 
#define MDB_ADDR_BUSY   (-30769)
 
#define MDB_LAST_ERRCODE   MDB_ADDR_BUSY
 

Detailed Description

BerkeleyDB uses -30800 to -30999, we'll go under them

Macro Definition Documentation

◆ MDB_SUCCESS

#define MDB_SUCCESS   0

Successful result

◆ MDB_KEYEXIST

#define MDB_KEYEXIST   (-30799)

key/data pair already exists

◆ MDB_NOTFOUND

#define MDB_NOTFOUND   (-30798)

key/data pair not found (EOF)

◆ MDB_PAGE_NOTFOUND

#define MDB_PAGE_NOTFOUND   (-30797)

Requested page not found - this usually indicates corruption

◆ MDB_CORRUPTED

#define MDB_CORRUPTED   (-30796)

Located page was wrong type

◆ MDB_PANIC

#define MDB_PANIC   (-30795)

Update of meta page failed or environment had fatal error

◆ MDB_VERSION_MISMATCH

#define MDB_VERSION_MISMATCH   (-30794)

Environment version mismatch

◆ MDB_INVALID

#define MDB_INVALID   (-30793)

File is not a valid LMDB file

◆ MDB_MAP_FULL

#define MDB_MAP_FULL   (-30792)

Environment mapsize reached

◆ MDB_DBS_FULL

#define MDB_DBS_FULL   (-30791)

Environment maxdbs reached

◆ MDB_READERS_FULL

#define MDB_READERS_FULL   (-30790)

Environment maxreaders reached

◆ MDB_TLS_FULL

#define MDB_TLS_FULL   (-30789)

Too many TLS keys in use - Windows only

◆ MDB_TXN_FULL

#define MDB_TXN_FULL   (-30788)

Txn has too many dirty pages

◆ MDB_CURSOR_FULL

#define MDB_CURSOR_FULL   (-30787)

Cursor stack too deep - internal error

◆ MDB_PAGE_FULL

#define MDB_PAGE_FULL   (-30786)

Page has not enough space - internal error

◆ MDB_MAP_RESIZED

#define MDB_MAP_RESIZED   (-30785)

Database contents grew beyond environment mapsize

◆ MDB_INCOMPATIBLE

#define MDB_INCOMPATIBLE   (-30784)

Operation and DB incompatible, or DB type changed. This can mean:

  • The operation expects an MDB_DUPSORT / MDB_DUPFIXED database.
  • Opening a named DB when the unnamed DB has MDB_DUPSORT / MDB_INTEGERKEY.
  • Accessing a data record as a database, or vice versa.
  • The database was dropped and recreated with different flags.

◆ MDB_BAD_RSLOT

#define MDB_BAD_RSLOT   (-30783)

Invalid reuse of reader locktable slot

◆ MDB_BAD_TXN

#define MDB_BAD_TXN   (-30782)

Transaction must abort, has a child, or is invalid

◆ MDB_BAD_VALSIZE

#define MDB_BAD_VALSIZE   (-30781)

Unsupported size of key/DB name/data, or wrong DUPFIXED size

◆ MDB_BAD_DBI

#define MDB_BAD_DBI   (-30780)

The specified DBI was changed unexpectedly

◆ MDB_PROBLEM

#define MDB_PROBLEM   (-30779)

Unexpected problem - txn should abort

◆ MDB_BAD_CHECKSUM

#define MDB_BAD_CHECKSUM   (-30778)

Page checksum incorrect

◆ MDB_CRYPTO_FAIL

#define MDB_CRYPTO_FAIL   (-30777)

Encryption/decryption failed

◆ MDB_ENV_ENCRYPTION

#define MDB_ENV_ENCRYPTION   (-30776)

Environment encryption mismatch

◆ MDB_TXN_PENDING

#define MDB_TXN_PENDING   (-30775)

Transaction was already prepared

◆ MDB_CANT_ROLLBACK

#define MDB_CANT_ROLLBACK   (-30774)

Environment can't rollback the last transaction

◆ MDB_DBIS_BUSY

#define MDB_DBIS_BUSY   (-30773)

Can't drop main DBI while other DBIs are open

◆ MDB_SHORT_WRITE

#define MDB_SHORT_WRITE   (-30772)

Write was incomplete

◆ MDB_ENV_BUSY

#define MDB_ENV_BUSY   (-30771)

Env is busy, can't use previous snapshot

◆ MDB_IS_READONLY

#define MDB_IS_READONLY   (-30770)

Env or txn is read-only, can't write

◆ MDB_ADDR_BUSY

#define MDB_ADDR_BUSY   (-30769)

Requested map address is unavailable

◆ MDB_LAST_ERRCODE

#define MDB_LAST_ERRCODE   MDB_ADDR_BUSY

The last defined error code