mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 03:46:37 +00:00
feat(scanner): expose checkpoint and source work status (#3230)
* feat(scanner): expose checkpoint and source work status * fix(scanner): count ignored checkpoints once per scan --------- Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
@@ -220,6 +220,17 @@ pub enum DataUsageScanCheckpointReason {
|
||||
Unknown,
|
||||
}
|
||||
|
||||
impl DataUsageScanCheckpointReason {
|
||||
pub fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::Runtime => "runtime",
|
||||
Self::Objects => "objects",
|
||||
Self::Directories => "directories",
|
||||
Self::Unknown => "unknown",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct DataUsageScanCheckpoint {
|
||||
pub version: u16,
|
||||
|
||||
Reference in New Issue
Block a user