feat: add delete WAL in drop_region (#1577)

* feat: add delete WAL in drop_region

* chore: fix typo err.

* feat: mark all SSTs deleted and remove the region from StorageEngine's region map.

* test: add test_drop_region for StorageEngine.

* chore: make clippy happy

* fix: fix conflict

* chore: CR.

* chore: CR

* chore: fix clippy

* fix: temp file life time
This commit is contained in:
Vanish
2023-05-18 18:02:34 +08:00
committed by GitHub
parent d76ddc575f
commit 8764ce7845
16 changed files with 257 additions and 26 deletions

View File

@@ -112,6 +112,11 @@ pub trait Table: Send + Sync {
Ok(())
}
/// Drop regions
async fn drop_regions(&self) -> Result<()> {
Ok(())
}
/// Get region stats in this table.
fn region_stats(&self) -> Result<Vec<RegionStat>> {
UnsupportedSnafu {