mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
@@ -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();
|
||||
|
||||
2
src/mito2/src/cache/file_cache.rs
vendored
2
src/mito2/src/cache/file_cache.rs
vendored
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user