aboutsummaryrefslogtreecommitdiff
path: root/src/wal.rs
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-06-10 16:17:40 -0400
committerDeterminant <[email protected]>2020-06-10 16:17:40 -0400
commit32a88299721393a5cbd3b369091de7cb77da349c (patch)
tree2f97916d5b2934a4bb2b99c68723f16fd3835ec8 /src/wal.rs
parent617c515ec1834501d4835076de3adcfb495d8ef9 (diff)
add failure generator in test
Diffstat (limited to 'src/wal.rs')
-rw-r--r--src/wal.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wal.rs b/src/wal.rs
index bcc7a19..1cbe8c1 100644
--- a/src/wal.rs
+++ b/src/wal.rs
@@ -172,10 +172,6 @@ impl<F: WALStore> WALWriter<F> {
fn new(state: WALState, file_pool: WALFilePool<F>) -> Self {
let mut b = Vec::new();
let block_size = 1 << file_pool.block_nbit as u32;
- //let block_nbit = state.block_nbit;
- //let block_size = 1 << (block_nbit as u32);
- //let file_nbit = state.file_nbit;
- //let file_size = 1 << (file_nbit as u64);
b.resize(block_size as usize, 0);
WALWriter{
state,