[fix](schema_hash) Fix bug that introduced by removing schema_hash (#9449)

This commit is contained in:
caiconghui
2022-05-08 21:03:10 +08:00
committed by GitHub
parent c633402ce3
commit 580ce38a3f
8 changed files with 26 additions and 33 deletions

View File

@ -1637,8 +1637,8 @@ void TaskWorkerPool::_submit_table_compaction_worker_thread_callback() {
compaction_type = CompactionType::CUMULATIVE_COMPACTION;
}
TabletSharedPtr tablet_ptr = StorageEngine::instance()->tablet_manager()->get_tablet(
compaction_req.tablet_id, compaction_req.schema_hash);
TabletSharedPtr tablet_ptr =
StorageEngine::instance()->tablet_manager()->get_tablet(compaction_req.tablet_id);
if (tablet_ptr != nullptr) {
auto data_dir = tablet_ptr->data_dir();
if (!tablet_ptr->can_do_compaction(data_dir->path_hash(), compaction_type)) {