diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 13 |
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.
*/
|