diff --git a/ch7/ch7-actionkv2/src/akv_disk.rs b/ch7/ch7-actionkv2/src/akv_disk.rs index 0fcbd421..73b05932 100644 --- a/ch7/ch7-actionkv2/src/akv_disk.rs +++ b/ch7/ch7-actionkv2/src/akv_disk.rs @@ -62,7 +62,10 @@ fn main() { } } - "delete" => a.delete(key).unwrap(), + "delete" => { + a.delete(key).unwrap(); + store_index_on_disk(&mut a, INDEX_KEY); <2> + } "insert" => { let value = maybe_value.expect(&USAGE).as_ref();