diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2009-11-04 19:31:50 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2009-11-04 19:31:50 +0000 |
commit | c8ceb3bf28a8aae8efef735d78a3e6da45049f95 (patch) | |
tree | 8a04beb27abea94e27c778ea6df0a621a6f2686f /src/main/java/com | |
parent | c8dd302fe527f6beb0901ccecfe8e07acb546021 (diff) |
Support setting max log file size.
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 14 |
1 files changed, 14 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 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 @@ -630,6 +630,20 @@ public class BDBRepositoryBuilder extends AbstractRepositoryBuilder { }
/**
+ * 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.
*/
|