Skip to content

Commit

Permalink
Remove Memory storage engine.
Browse files Browse the repository at this point in the history
With BitCask now the main storage engine, there's no point keeping a
custom in-memory B-tree implementation around. Remove it in favor of the
stdlib implementation.
  • Loading branch information
erikgrinaker committed Aug 31, 2023
1 parent d179677 commit dc8904b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 1,355 deletions.
1 change: 0 additions & 1 deletion config/toydb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ storage_raft: hybrid

# SQL key-value storage engine
# - bitcask (default): uses BitCask, an append-only log-structure store.
# - memory: uses an in-memory B+tree. Durability is provided by the Raft log.
# - stdmemory: uses the Rust standard library BTreeMap.
storage_sql: bitcask
1 change: 0 additions & 1 deletion src/bin/toydb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ async fn main() -> Result<()> {
"bitcask" | "" => {
Box::new(storage::kv::BitCask::new_compact(path.join("state"), cfg.compact_threshold)?)
}
"memory" => Box::new(storage::kv::Memory::new()),
"stdmemory" => Box::new(storage::kv::StdMemory::new()),
name => return Err(Error::Config(format!("Unknown SQL storage engine {}", name))),
};
Expand Down
Loading

0 comments on commit dc8904b

Please sign in to comment.