From 3394bac2c0fcb69f29da5bd182fdb025b6ac42f6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 20 Feb 2013 05:08:52 -0800 Subject: [PATCH] Update error code instances --- libraries/liblmdb/lmdb.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 029945a608..b94bd2d3b8 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -492,7 +492,7 @@ int mdb_env_create(MDB_env **env); * */ int mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn); @@ -706,7 +707,7 @@ int mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn ** *
  • EINVAL - an invalid parameter was specified. *
  • ENOSPC - no more disk space. *
  • EIO - a low-level I/O error occurred while writing. - *
  • ENOMEM - the transaction is nested and could not be merged into its parent. + *
  • ENOMEM - out of memory. * */ int mdb_txn_commit(MDB_txn *txn); @@ -811,7 +812,7 @@ int mdb_txn_renew(MDB_txn *txn); * */ int mdb_dbi_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi); @@ -997,9 +998,10 @@ int mdb_get(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data); * @return A non-zero error value on failure and 0 on success. Some possible * errors are: * */ int mdb_put(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, @@ -1139,6 +1141,8 @@ int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data, * @return A non-zero error value on failure and 0 on success. Some possible * errors are: * -- 2.39.5