From 202a87b8a7394eb430c90bd42c086eba40fbc433 Mon Sep 17 00:00:00 2001 From: Tsunaou <895254752@qq.com> Date: Fri, 26 Apr 2024 05:58:20 +0000 Subject: [PATCH] fix useless mock column group schema --- src/storage/high_availability/ob_physical_copy_task.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/storage/high_availability/ob_physical_copy_task.cpp b/src/storage/high_availability/ob_physical_copy_task.cpp index d509c76ba..21eb67f44 100644 --- a/src/storage/high_availability/ob_physical_copy_task.cpp +++ b/src/storage/high_availability/ob_physical_copy_task.cpp @@ -825,18 +825,10 @@ int ObSSTableCopyFinishTask::prepare_data_store_desc_( } else { const uint16_t cg_idx = sstable_param->table_key_.get_column_group_id(); const ObStorageColumnGroupSchema *cg_schema = nullptr; - ObStorageColumnGroupSchema mocked_row_store_cg; if (sstable_param->table_key_.is_cg_sstable()) { if (OB_UNLIKELY(cg_idx < 0 || cg_idx >= storage_schema->get_column_group_count())) { ret = OB_ERR_UNEXPECTED; LOG_WARN("get unexpected cg idx", K(ret), K(cg_idx), KPC(storage_schema)); - } else if (ALL_CG_TYPE == sstable_param->co_base_type_ && cg_schema->is_rowkey_column_group()) { - // ALL_CG_TYPE means major is row store (no cgs), cg_schema means table is created with column store. - if (OB_FAIL(storage_schema->mock_row_store_cg(mocked_row_store_cg))) { - LOG_WARN("failed to mock row store column group schema", K(ret)); - } else { - cg_schema = &mocked_row_store_cg; - } } else { cg_schema = &storage_schema->get_column_groups().at(cg_idx); }