support max_connections and max_user_connections
This commit is contained in:
@ -789,11 +789,11 @@ static struct VarsInit {
|
||||
|
||||
ObSysVars[62].info_ = "";
|
||||
ObSysVars[62].name_ = "max_connections";
|
||||
ObSysVars[62].data_type_ = ObIntType;
|
||||
ObSysVars[62].value_ = "151";
|
||||
ObSysVars[62].data_type_ = ObUInt64Type;
|
||||
ObSysVars[62].value_ = "4294967295";
|
||||
ObSysVars[62].min_val_ = "1";
|
||||
ObSysVars[62].max_val_ = "100000";
|
||||
ObSysVars[62].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::MYSQL_ONLY;
|
||||
ObSysVars[62].max_val_ = "4294967295";
|
||||
ObSysVars[62].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::MYSQL_ONLY;
|
||||
ObSysVars[62].id_ = SYS_VAR_MAX_CONNECTIONS;
|
||||
cur_max_var_id = MAX(cur_max_var_id, static_cast<int64_t>(SYS_VAR_MAX_CONNECTIONS));
|
||||
ObSysVarsIdToArrayIdx[SYS_VAR_MAX_CONNECTIONS] = 62;
|
||||
|
||||
@ -868,12 +868,12 @@
|
||||
"max_connections": {
|
||||
"id": 62,
|
||||
"name": "max_connections",
|
||||
"value": "151",
|
||||
"data_type": "int",
|
||||
"value": "4294967295",
|
||||
"data_type": "uint",
|
||||
"info": "",
|
||||
"flags": "GLOBAL | SESSION | MYSQL_ONLY",
|
||||
"flags": "GLOBAL | MYSQL_ONLY",
|
||||
"min_val": "1",
|
||||
"max_val": "100000",
|
||||
"max_val": "4294967295",
|
||||
"publish_version": "",
|
||||
"info_cn": "",
|
||||
"background_cn": "",
|
||||
|
||||
Reference in New Issue
Block a user