From c8ceb3bf28a8aae8efef735d78a3e6da45049f95 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 4 Nov 2009 19:31:50 +0000 Subject: Support setting max log file size. --- .../carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main/java/com') 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 59a5d22..c1e6196 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java @@ -629,6 +629,20 @@ public class BDBRepositoryBuilder extends AbstractRepositoryBuilder { return mLogInMemory; } + /** + * Set the maximum transaction log file size for the BDB environment. + */ + public void setLogFileMaxSize(Integer sizeInBytes) { + mLogFileMaxSize = sizeInBytes; + } + + /** + * Returns null if default size will be used. + */ + public Integer getLogFileMaxSize() { + return mLogFileMaxSize; + } + /** * 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