From 0a78be150e162aad34c19f233dc2f4ca71f61135 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sat, 4 Nov 2006 17:44:21 +0000 Subject: Support transaction isolation level of "none". --- .../com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat') diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java index 4c6105f..53ca5e4 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java @@ -49,6 +49,9 @@ class BDBTransactionManager extends TransactionManager { } protected Txn createTxn(Txn parent, IsolationLevel level) throws Exception { + if (level == IsolationLevel.NONE) { + return null; + } return repository().txn_begin(parent, level); } @@ -56,6 +59,9 @@ class BDBTransactionManager extends TransactionManager { protected Txn createTxn(Txn parent, IsolationLevel level, int timeout, TimeUnit unit) throws Exception { + if (level == IsolationLevel.NONE) { + return null; + } if (timeout == 0) { return repository().txn_begin_nowait(parent, level); } else { -- cgit v1.2.3