[bug](cooldown) Fix the issue of unused remote files not being deleted (#19785)

This commit is contained in:
plat1ko
2023-06-12 21:05:09 +08:00
committed by GitHub
parent 1433544c56
commit 283c55720d
3 changed files with 10 additions and 12 deletions

View File

@ -856,7 +856,7 @@ Status TabletManager::load_tablet_from_dir(DataDir* store, TTabletId tablet_id,
}
TabletMetaSharedPtr tablet_meta(new TabletMeta());
if (tablet_meta->create_from_file(header_path) != Status::OK()) {
if (!tablet_meta->create_from_file(header_path).ok()) {
LOG(WARNING) << "fail to load tablet_meta. file_path=" << header_path;
return Status::Error<ENGINE_LOAD_INDEX_TABLE_ERROR>();
}