Skip to content

Commit

Permalink
Delete data after applying snapshot. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg committed Nov 14, 2019
1 parent 7034b03 commit 97620ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/raftstore/store/worker/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ impl SnapContext {
region_id,
timer.elapsed()
);
{
// hacked by solotzg: clean up range and trying to delete files
self.cleanup_range(
region_id, &start_key, &end_key, true, /* use_delete_files */
);
}
Ok(())
}

Expand Down

0 comments on commit 97620ab

Please sign in to comment.