[CP] [CP] _parallel_ddl_control

This commit is contained in:
fanfangzhou
2024-06-19 06:47:28 +00:00
committed by ob-robot
parent 6bf3f38ce4
commit dc3831cd1d
11 changed files with 322 additions and 9 deletions

View File

@ -2088,6 +2088,14 @@ int ObTruncateTableExecutor::check_use_parallel_truncate(const obrpc::ObTruncate
use_parallel_truncate = (table_schema->get_autoinc_column_id() == 0 && compat_version >= DATA_VERSION_4_1_0_0)
|| compat_version >= DATA_VERSION_4_1_0_2;
}
if (OB_FAIL(ret)) {
// do nothing
} else if (use_parallel_truncate
&& OB_FAIL(ObParallelDDLControlMode::is_parallel_ddl_enable(
ObParallelDDLControlMode::TRUNCATE_TABLE,
tenant_id, use_parallel_truncate))) {
LOG_WARN("fail to check whether is parallel truncate table", KR(ret), K(tenant_id));
}
return ret;
}