per review

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2025-12-09 13:24:56 +08:00
parent 54a91d3adc
commit c7e840a1ad
2 changed files with 2 additions and 2 deletions

View File

@@ -476,7 +476,7 @@ impl TempFileCleaner {
}
/// Removes the SST and index file from the local atomic dir by the file id.
/// This only remove the initial index, Since the index version is always 0 for a new SST, this method should be safe to pass 0.
/// This only removes the initial index, since the index version is always 0 for a new SST, this method should be safe to pass 0.
pub(crate) async fn clean_by_file_id(&self, file_id: FileId) {
let sst_key = IndexKey::new(self.region_id, file_id, FileType::Parquet).to_string();
let index_key = IndexKey::new(self.region_id, file_id, FileType::Puffin(0)).to_string();

View File

@@ -621,7 +621,7 @@ pub enum FileType {
Puffin(u64),
}
impl std::fmt::Display for FileType {
impl fmt::Display for FileType {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
FileType::Parquet => write!(f, "parquet"),