Skip to content

Commit

Permalink
cli: add quit command
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi <iskyzh@gmail.com>
  • Loading branch information
skyzh committed Jan 18, 2024
1 parent 53cb1fe commit 3aad027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mini-lsm/src/bin/minilsm_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ fn main() -> Result<()> {
}
} else if line == "flush" {
lsm.force_flush_imm_memtables()?;
} else if line == "quit" {
lsm.close()?;
break;
} else {
println!("invalid command: {}", line);
}
epoch += 1;
}
Ok(())
}

0 comments on commit 3aad027

Please sign in to comment.