summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/sleepycat
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2010-09-30 00:04:21 +0000
committerBrian S. O'Neill <bronee@gmail.com>2010-09-30 00:04:21 +0000
commitc6836bb400901864d8be9145956869ef4671b8aa (patch)
treedb7c2758cc2a3d5758b7b26e6142d7ab2a2d891d /src/main/java/com/amazon/carbonado/repo/sleepycat
parent659f1ab27fbb97d8b33a97ed9fc2a18ff5bd0d50 (diff)
Add option to force logging sub-system to initialize.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat')
-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 e23d27a..562572f 100644
--- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
+++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
@@ -103,6 +103,7 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
private boolean mMultiversion;
private boolean mLogInMemory;
private Integer mLogFileMaxSize;
+ private boolean mInitializeLogging;
private boolean mRunFullRecovery;
private boolean mRunCheckpointer = true;
private int mCheckpointInterval = DEFAULT_CHECKPOINT_INTERVAL;
@@ -652,6 +653,18 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
}
/**
+ * Ensure the transaction logging sub-system is initialized, which is
+ * usually implied.
+ */
+ public void setInitializeLogging(boolean b) {
+ mInitializeLogging = b;
+ }
+
+ public boolean getInitializeLogging() {
+ return mInitializeLogging;
+ }
+
+ /**
* Pass true to override the default and run a full (catastrophic) recovery
* when environment is opened. This setting has no effect for BDB-JE.
*/