diff --git a/package.json b/package.json index cc8bc4001..0d09e440c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lmdb", "author": "Kris Zyp", - "version": "2.9.3-beta.3-debug", + "version": "2.9.3-beta.4-debug", "description": "Simple, efficient, scalable, high-performance LMDB interface", "license": "MIT", "repository": { diff --git a/src/env.cpp b/src/env.cpp index eb9518bd6..fb8a0da0d 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -213,8 +213,7 @@ MDB_txn* EnvWrap::getReadTxn(int64_t tw_address) { if (rc) { if (!txn) fprintf(stderr, "No current read transaction available"); - if (rc != EINVAL) - return nullptr; // if there was a real error, signal with nullptr and let error propagate with last_error + return nullptr; // if there was an error, signal with nullptr and let error propagate with last_error } return txn; }