We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2132503 commit 50f9fdaCopy full SHA for 50f9fda
src/main/java/org/lmdbjava/Cursor.java
@@ -279,8 +279,10 @@ public void renew(final Txn<T> newTxn) {
279
newTxn.checkReadOnly();
280
newTxn.checkReady();
281
}
282
- checkRc(LIB.mdb_cursor_renew(newTxn.pointer(), ptrCursor));
283
- this.txn = newTxn;
+ if (this.txn != newTxn) {
+ checkRc(LIB.mdb_cursor_renew(newTxn.pointer(), ptrCursor));
284
+ this.txn = newTxn;
285
+ }
286
287
288
/**
0 commit comments