diff --git a/dependencies/lmdb/libraries/liblmdb/mdb.c b/dependencies/lmdb/libraries/liblmdb/mdb.c index a80adcc45..f01536a76 100644 --- a/dependencies/lmdb/libraries/liblmdb/mdb.c +++ b/dependencies/lmdb/libraries/liblmdb/mdb.c @@ -3483,13 +3483,13 @@ mdb_txn_renew(MDB_txn *txn) if (!txn) last_error = "No transaction to renew"; else if (F_ISSET(txn->mt_flags, MDB_TXN_RDONLY)) { - // Txn is already renewed, consider this as invalid for compatibility with v1 - return EINVAL; + // Txn is already renewed, we can just keep using it + return MDB_SUCCESS; } else { last_error = malloc(100); sprintf(last_error, "Transaction flag was invalid for renew: %u", txn->mt_flags); } - return MDB_BAD_TXN; // if the transaction is not read-only, communicate this with a separate error code + return EINVAL; } rc = mdb_txn_renew0(txn); diff --git a/package.json b/package.json index 3f40557dc..28c88d77b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lmdb", "author": "Kris Zyp", - "version": "2.9.3", + "version": "2.9.4", "description": "Simple, efficient, scalable, high-performance LMDB interface", "license": "MIT", "repository": { @@ -109,5 +109,6 @@ "useTabs": true, "singleQuote": true }, - "optionalDependencies": {} + "optionalDependencies": { + } } \ No newline at end of file