diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2011-01-19 04:23:06 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2011-01-19 04:23:06 +0000 |
commit | dbf8f44f09ea99a128ecfccea7a94928e4439fe1 (patch) | |
tree | acddfc2151c9cefe16555a64c93a576259f546f1 /src/main/java/com/amazon/carbonado/repo/logging | |
parent | 4d457d6fb92e0d18d353a8619e8d17e9a6eb9085 (diff) |
Add Transaction preCommit method.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/logging')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/logging/LoggingTransaction.java | 5 |
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 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);
|