[fix](gc_binlog) Fix tablet gc_binlogs nullptr (#21158)
This commit is contained in:
@ -776,7 +776,11 @@ void StorageEngine::gc_binlogs(const std::unordered_map<int64_t, int64_t>& gc_ta
|
||||
LOG(INFO) << fmt::format("start to gc binlogs for tablet_id: {}, version: {}", tablet_id,
|
||||
version);
|
||||
|
||||
TabletSharedPtr tablet = StorageEngine::instance()->tablet_manager()->get_tablet(tablet_id);
|
||||
TabletSharedPtr tablet = _tablet_manager->get_tablet(tablet_id);
|
||||
if (tablet == nullptr) {
|
||||
LOG(WARNING) << fmt::format("tablet_id: {} not found", tablet_id);
|
||||
continue;
|
||||
}
|
||||
tablet->gc_binlogs(version);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user