EC volume supports expiration and displays expiration message when executing volume.list (#5895)

* ec volume expire

* volume.list show DestroyTime

* comments

* code optimization

---------

Co-authored-by: xuwenfeng <xuwenfeng1@zto.com>
This commit is contained in:
augustazz
2024-08-16 15:20:00 +08:00
committed by GitHub
parent 8f1f1730e9
commit 0b00706454
14 changed files with 1189 additions and 1082 deletions

View File

@@ -122,6 +122,7 @@ message VolumeEcShardInformationMessage {
string collection = 2;
uint32 ec_index_bits = 3;
string disk_type = 4;
uint64 destroy_time = 5; // used to record the destruction time of ec volume
}
message StorageBackend {

File diff suppressed because it is too large Load Diff

View File

@@ -479,6 +479,7 @@ message VolumeInfo {
string replication = 3;
uint32 BytesOffset = 4;
int64 dat_file_size = 5; // used for EC encoded volumes to store the original file size
uint64 DestroyTime = 6; // used to record the destruction time of ec volume
}
// tiered storage

File diff suppressed because it is too large Load Diff