From 281285bde08ca05ada7819cb8a0778336fae5fc8 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 25 Aug 2022 18:16:16 +0800 Subject: [PATCH] fix mysqltest after support 4096 cols --- src/share/schema/ob_table_schema.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/schema/ob_table_schema.cpp b/src/share/schema/ob_table_schema.cpp index 235c50dc2a..e49e6d96f3 100644 --- a/src/share/schema/ob_table_schema.cpp +++ b/src/share/schema/ob_table_schema.cpp @@ -3267,7 +3267,7 @@ int ObTableSchema::add_col_to_id_hash_array(ObColumnSchemaV2* column) LOG_WARN("The column is NULL", K(ret)); } else { if (NULL == id_hash_array_) { - id_hash_array_mem_size = get_id_hash_array_mem_size(common::OB_MAX_COLUMN_NUMBER); + id_hash_array_mem_size = get_id_hash_array_mem_size(0); if (NULL == (buf = static_cast(alloc(id_hash_array_mem_size)))) { ret = OB_ALLOCATE_MEMORY_FAILED; LOG_ERROR("Fail to allocate memory for id_hash_array, ", K(id_hash_array_mem_size)); @@ -3370,7 +3370,7 @@ int ObTableSchema::add_col_to_name_hash_array(ObColumnSchemaV2* column) CompatModeGuard g(compat_mode); ObColumnSchemaHashWrapper column_name_key(column->get_column_name_str()); if (NULL == name_hash_array_) { - name_hash_array_mem_size = get_name_hash_array_mem_size(common::OB_MAX_COLUMN_NUMBER); + name_hash_array_mem_size = get_name_hash_array_mem_size(0); if (NULL == (buf = static_cast(alloc(name_hash_array_mem_size)))) { ret = OB_ALLOCATE_MEMORY_FAILED; LOG_ERROR("Fail to allocate memory, ", K(name_hash_array_mem_size), K(ret)); -- GitLab