finish skeleton for serializability check
Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
@@ -29,6 +29,8 @@ struct Args {
|
||||
compaction: CompactionStrategy,
|
||||
#[arg(long)]
|
||||
enable_wal: bool,
|
||||
#[arg(long)]
|
||||
serializable: bool,
|
||||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
@@ -64,6 +66,7 @@ fn main() -> Result<()> {
|
||||
}
|
||||
},
|
||||
enable_wal: args.enable_wal,
|
||||
serializable: args.serializable,
|
||||
},
|
||||
)?;
|
||||
let mut epoch = 0;
|
||||
|
@@ -74,6 +74,7 @@ pub struct LsmStorageOptions {
|
||||
pub num_memtable_limit: usize,
|
||||
pub compaction_options: CompactionOptions,
|
||||
pub enable_wal: bool,
|
||||
pub serializable: bool,
|
||||
}
|
||||
|
||||
impl LsmStorageOptions {
|
||||
@@ -84,6 +85,7 @@ impl LsmStorageOptions {
|
||||
compaction_options: CompactionOptions::NoCompaction,
|
||||
enable_wal: false,
|
||||
num_memtable_limit: 50,
|
||||
serializable: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +96,7 @@ impl LsmStorageOptions {
|
||||
compaction_options: CompactionOptions::NoCompaction,
|
||||
enable_wal: false,
|
||||
num_memtable_limit: 2,
|
||||
serializable: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +107,7 @@ impl LsmStorageOptions {
|
||||
compaction_options,
|
||||
enable_wal: false,
|
||||
num_memtable_limit: 2,
|
||||
serializable: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user