Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue #74

  • Loading branch information...
commit d247a9254a002fb8f0a29a27589b4f303094c0d8 1 parent 275f231
@jankotek authored
View
2  src/main/java/org/apache/jdbm/PageFile.java
@@ -302,7 +302,7 @@ void close() throws IOException {
commit();
}
- if(!transactionsDisabled){
+ if(!transactionsDisabled && txnMgr!=null){
txnMgr.shutdown();
}
View
9 src/test/java/org/apache/jdbm/TestIssues.java
@@ -69,4 +69,13 @@ public void run() {
thread.join();
db.close();
}
+
+ public void test_issue_84_reopen_after_close(){
+ String f = newTestFile();
+ DB db = DBMaker.openFile(f).make();
+ db.close();
+
+ db = DBMaker.openFile(f).readonly().make();
+ db.close();
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.