[FEAT MERGE] support auto dop

This commit is contained in:
obdev
2023-04-28 15:11:52 +00:00
committed by ob-robot
parent 642f1c7d84
commit b41dc0ebdd
106 changed files with 3815 additions and 2844 deletions

View File

@ -5048,6 +5048,23 @@ int ObBasicSessionInfo::get_force_parallel_query_dop(uint64_t &v) const
return ret;
}
int ObBasicSessionInfo::get_parallel_degree_policy_enable_auto_dop(bool &v) const
{
int ret = OB_SUCCESS;
v = false;
if (exec_min_cluster_version_ >= CLUSTER_VERSION_4_2_0_0) {
int64_t value = 0;
if (OB_FAIL(get_int64_sys_var(SYS_VAR_PARALLEL_DEGREE_POLICY, value))) {
LOG_WARN("failed to update session_timeout", K(ret));
} else {
v = 1 == value;
}
} else {
v = false;
}
return ret;
}
int ObBasicSessionInfo::get_force_parallel_dml_dop(uint64_t &v) const
{
int ret = OB_SUCCESS;