aboutsummaryrefslogtreecommitdiff
path: root/src/wal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wal.rs')
-rw-r--r--src/wal.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wal.rs b/src/wal.rs
index f1a6e85..28831cd 100644
--- a/src/wal.rs
+++ b/src/wal.rs
@@ -574,8 +574,8 @@ pub struct WALLoader {
recover_policy: RecoverPolicy,
}
-impl WALLoader {
- pub fn new() -> Self {
+impl Default for WALLoader {
+ fn default() -> Self {
WALLoader {
file_nbit: 22, // 4MB
block_nbit: 15, // 32KB,
@@ -583,6 +583,12 @@ impl WALLoader {
recover_policy: RecoverPolicy::Strict
}
}
+}
+
+impl WALLoader {
+ pub fn new() -> Self {
+ Default::default()
+ }
pub fn file_nbit(&mut self, v: u8) -> &mut Self {
self.file_nbit = v;