refactor: clarify region flush reasons (#8146)

* refactor: clarify region flush reasons

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: apply suggestions from CR

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-05-21 15:35:46 +08:00
committed by GitHub
parent ba679dddfa
commit 15fc148e40
5 changed files with 34 additions and 40 deletions

View File

@@ -1414,6 +1414,10 @@ pub enum RegionFlushReason {
Repartition,
/// Flush triggered by remote WAL pruning.
RemoteWalPrune,
/// Flush region before closing region.
Closing,
/// Flush region before downgrading region.
Downgrading,
}
#[derive(Debug, Clone, Default)]