support max_connections and max_user_connections

This commit is contained in:
st0
2021-08-19 17:11:52 +08:00
committed by wangzelin.wzl
parent 4a1adf11e8
commit 88a8862b77
52 changed files with 22189 additions and 24112 deletions

View File

@ -3832,13 +3832,15 @@ struct ObSetPasswdArg : public ObDDLArg {
public:
ObSetPasswdArg()
: ObDDLArg(), tenant_id_(common::OB_INVALID_ID), ssl_type_(share::schema::ObSSLType::SSL_TYPE_NOT_SPECIFIED)
: ObDDLArg(), tenant_id_(common::OB_INVALID_ID), ssl_type_(share::schema::ObSSLType::SSL_TYPE_NOT_SPECIFIED),
modify_max_connections_(false), max_connections_per_hour_(OB_INVALID_ID), max_user_connections_(OB_INVALID_ID)
{}
virtual ~ObSetPasswdArg()
{}
bool is_valid() const;
TO_STRING_KV(
K_(tenant_id), K_(user), K_(host), K_(passwd), K_(ssl_type), K_(ssl_cipher), K_(x509_issuer), K_(x509_subject));
K_(tenant_id), K_(user), K_(host), K_(passwd), K_(ssl_type), K_(ssl_cipher), K_(x509_issuer), K_(x509_subject),
K_(modify_max_connections), K_(max_connections_per_hour), K_(max_user_connections));
uint64_t tenant_id_;
common::ObString user_;
@ -3848,6 +3850,9 @@ public:
common::ObString ssl_cipher_;
common::ObString x509_issuer_;
common::ObString x509_subject_;
bool modify_max_connections_;
uint64_t max_connections_per_hour_;
uint64_t max_user_connections_;
};
struct ObLockUserArg : public ObDDLArg {