[CP] Add system variable default_storage_engine
This commit is contained in:
committed by
wangzelin.wzl
parent
ba11b4ac6b
commit
9cc87d8343
@ -673,6 +673,17 @@ int ObVariableSetExecutor::check_and_convert_sys_var(ObExecContext& ctx, const O
|
||||
LOG_WARN("not support modify this variables now", K(set_var), K(new_value), K(ret));
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_FAIL(ret)) {
|
||||
} else if (set_var.var_name_ == OB_SV_DEFAULT_STORAGE_ENGINE) {
|
||||
static const common::ObString DEFAULT_VALUE_STORAGE_ENGINE("OceanBase");
|
||||
const ObString new_value = out_val.get_string();
|
||||
if (new_value.case_compare(DEFAULT_VALUE_STORAGE_ENGINE) != 0) {
|
||||
ret = OB_ERR_PARAM_VALUE_INVALID;
|
||||
LOG_USER_ERROR(OB_ERR_PARAM_VALUE_INVALID);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user