summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/logging
diff options
context:
space:
mode:
authorAdam Vandenberg <flangy@gmail.com>2014-03-05 15:55:08 -0800
committerbroneill <bronee@gmail.com>2014-03-06 07:17:24 -0800
commit96d2600cff43f72700c00473bb813ee5c01c30ca (patch)
tree8a591a78d82b8739dd56e6aa975d53fbf3ee824c /src/main/java/com/amazon/carbonado/repo/logging
parent72df69d2aa512e5a6168df119aecdafd07a251c7 (diff)
Implement AutoCloseable
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/logging')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java
index e2b080c..5141d6e 100644
--- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java
+++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java
@@ -102,6 +102,11 @@ class LoggingTransaction implements Transaction {
return mTxn.preCommit();
}
+ @Override
+ public void close() throws PersistException {
+ exit();
+ }
+
private String idChain() {
if (mParent == null) {
return String.valueOf(mID);