From cbc10c3cd77d8596a3ec91d54a37283688ea6f15 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Sun, 10 Mar 2024 07:48:37 -0600 Subject: [PATCH] Undo changes to renew --- dependencies/lmdb/libraries/liblmdb/mdb.c | 6 +++--- package.json | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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