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

This commit is contained in:
hnwyllmm
2024-02-07 21:22:11 +00:00
committed by ob-robot
parent 9855b2f1ba
commit ccb1813be7
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_) {