From c6836bb400901864d8be9145956869ef4671b8aa Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 30 Sep 2010 00:04:21 +0000 Subject: Add option to force logging sub-system to initialize. --- .../carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main/java') 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; @@ -651,6 +652,18 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder { return mLogFileMaxSize; } + /** + * 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. -- cgit v1.2.3