From dbf8f44f09ea99a128ecfccea7a94928e4439fe1 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 19 Jan 2011 04:23:06 +0000 Subject: Add Transaction preCommit method. --- .../java/com/amazon/carbonado/repo/logging/LoggingTransaction.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/repo/logging') 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 532159c..40ae99e 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java @@ -97,6 +97,11 @@ class LoggingTransaction implements Transaction { mTxn.attach(); } + public boolean preCommit() throws PersistException { + mLog.write("Transaction.preCommit() on " + idChain()); + return mTxn.preCommit(); + } + private String idChain() { if (mParent == null) { return String.valueOf(mID); -- cgit v1.2.3