DOKK / manpages / debian 11 / lmdb-doc / mdb_errors.3.en
errors(3) Library Functions Manual errors(3)

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


#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_LAST_ERRCODE MDB_BAD_DBI

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

Successful result

key/data pair already exists

key/data pair not found (EOF)

Requested page not found - this usually indicates corruption

Located page was wrong type

Update of meta page failed or environment had fatal error

Environment version mismatch

File is not a valid LMDB file

Environment mapsize reached

Environment maxdbs reached

Environment maxreaders reached

Too many TLS keys in use - Windows only

Txn has too many dirty pages

Cursor stack too deep - internal error

Page has not enough space - internal error

Database contents grew beyond environment mapsize

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.

Invalid reuse of reader locktable slot

Transaction must abort, has a child, or is invalid

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

The specified DBI was changed unexpectedly

The last defined error code

Generated automatically by Doxygen for LMDB from the source code.

Wed Mar 25 2020 LMDB