summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/sleepycat
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-11-04 17:44:21 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-11-04 17:44:21 +0000
commit0a78be150e162aad34c19f233dc2f4ca71f61135 (patch)
treeaf6a18cac0541894b16a72782f3fb50f59c533a9 /src/main/java/com/amazon/carbonado/repo/sleepycat
parent9e4cd7e3af4ff5326fcb7a1dde3861f64badab41 (diff)
Support transaction isolation level of "none".
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBTransactionManager.java6
1 files changed, 6 insertions, 0 deletions
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<Txn> extends TransactionManager<Txn> {
}
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<Txn> extends TransactionManager<Txn> {
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 {