diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/logging')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java | 14 |
1 files changed, 14 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 fd88f35..dd2a4f5 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java @@ -83,6 +83,20 @@ class LoggingTransaction implements Transaction { return mTxn.getIsolationLevel();
}
+ public void detach() {
+ if (mLog.isEnabled()) {
+ mLog.write("Transaction.detach() on " + idChain());
+ }
+ mTxn.detach();
+ }
+
+ public void attach() {
+ if (mLog.isEnabled()) {
+ mLog.write("Transaction.attach() on " + idChain());
+ }
+ mTxn.attach();
+ }
+
private String idChain() {
if (mParent == null) {
return String.valueOf(mID);
|