[FEAT MERGE] Enable IAA for accelerate defalte compression and decompression for OB 4.0

Co-authored-by: 唐曦 Intel <xi.tang@intel.com>
Co-authored-by: 邓刚 Intel <gang.deng@Intel.com>
This commit is contained in:
hnwyllmm
2023-12-14 14:13:16 +00:00
committed by ant-ob-hengtang
parent c12d0eeaad
commit bd4823fae9
45 changed files with 24371 additions and 5 deletions

View File

@ -429,6 +429,18 @@ int ObAlterTableResolver::set_table_options()
alter_table_schema.alter_option_bitset_ = alter_table_bitset_;
}
if (OB_SUCC(ret) && alter_table_schema.get_compressor_type() == ObCompressorType::ZLIB_LITE_COMPRESSOR) {
uint64_t tenant_data_version = 0;
if (OB_FAIL(GET_MIN_DATA_VERSION(session_info_->get_effective_tenant_id(), tenant_data_version))) {
LOG_WARN("get tenant data version failed", K(ret));
} else if (tenant_data_version < DATA_VERSION_4_3_0_0) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("tenant version is less than 4.3, zlib_lite compress method is not supported",
K(ret), K(tenant_data_version));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "version is less than 4.3, zlib_lite");
}
}
if (OB_FAIL(ret)) {
//do nothing
}

View File

@ -345,6 +345,18 @@ int ObCreateTableResolverBase::set_table_option_to_schema(ObTableSchema &table_s
}
}
if (OB_SUCC(ret) && table_schema.get_compressor_type() == ObCompressorType::ZLIB_LITE_COMPRESSOR) {
uint64_t tenant_data_version = 0;
if (OB_FAIL(GET_MIN_DATA_VERSION(session_info_->get_effective_tenant_id(), tenant_data_version))) {
LOG_WARN("get tenant data version failed", K(ret));
} else if (tenant_data_version < DATA_VERSION_4_3_0_0) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("tenant version is less than 4.3, zlib_lite compress method is not supported",
K(ret), K(tenant_data_version));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "version is less than 4.3, zlib_lite");
}
}
if (OB_SUCC(ret)) {
// if lob_inrow_threshold not set, used config default_lob_inrow_threshold
if (is_set_lob_inrow_threshold_) {