diff options
author | Determinant <[email protected]> | 2020-06-17 23:06:09 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-06-17 23:06:09 -0400 |
commit | 33070682dcf1ec0bf9b22cd2ea38cf983a628f7d (patch) | |
tree | 954a4bfb2c00927b1c65ace3dfdddb22b6cda06e /src/wal.rs | |
parent | ac755fb17ec1a72361fa734dc453fa336e9f818f (diff) |
bump the version of libaio-futuresv0.1.3
Diffstat (limited to 'src/wal.rs')
-rw-r--r-- | src/wal.rs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; |