summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2011-01-08 01:18:58 +0000
committerBrian S. O'Neill <bronee@gmail.com>2011-01-08 01:18:58 +0000
commit28d0b3c1737ba38759f84ee9fdbb769f903dbf0e (patch)
tree9ca42f13bea241685fd86118f6811c265109ba51 /src
parentc040b7cfb3bdccf0a00b496adffc4c0b29cfc379 (diff)
Add option to disable reverse splits.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
index 562572f..7605b30 100644
--- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
+++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
@@ -98,6 +98,7 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
private boolean mTxnNoSync;
private boolean mTxnWriteNoSync;
private Boolean mDatabasesTransactional = null;
+ private boolean mReverseSplitOff;
private Map<Class<?>, Integer> mDatabasePageSizes;
private boolean mPrivate;
private boolean mMultiversion;
@@ -571,6 +572,18 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
}
/**
+ * Pass true to disable reverse split of B-tree nodes to reduce deadlocks.
+ * This setting has no effect for BDB-JE.
+ */
+ public void setReverseSplitOff(boolean off) {
+ mReverseSplitOff = off;
+ }
+
+ public boolean isReverseSplitOff() {
+ return mReverseSplitOff;
+ }
+
+ /**
* Sets the desired page size for a given type. If not specified, the page
* size applies to all types.
*/