mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Fix change user problems
This commit is contained in:
parent
debbaa4166
commit
beeca02c30
@ -929,6 +929,11 @@ adjust_user(network_mysqld_con *con)
|
||||
chuser.username = con->client->response->username;
|
||||
chuser.auth_plugin_data = con->server->challenge->auth_plugin_data;
|
||||
chuser.hashed_pwd = hashed_password;
|
||||
|
||||
if (strcmp(con->client->default_db->str, "") == 0) {
|
||||
g_string_assign_len(con->client->default_db,
|
||||
con->srv->default_db, strlen(con->srv->default_db));
|
||||
}
|
||||
chuser.database = con->client->default_db;
|
||||
chuser.charset = con->client->charset_code;
|
||||
|
||||
|
@ -1640,6 +1640,11 @@ check_user_consistant(network_mysqld_con *con)
|
||||
chuser.username = con->client->response->username;
|
||||
chuser.auth_plugin_data = ss->server->challenge->auth_plugin_data;
|
||||
chuser.hashed_pwd = hashed_password;
|
||||
|
||||
if (strcmp(con->client->default_db->str, "") == 0) {
|
||||
g_string_assign_len(con->client->default_db,
|
||||
con->srv->default_db, strlen(con->srv->default_db));
|
||||
}
|
||||
chuser.database = con->client->default_db;
|
||||
chuser.charset = con->client->charset_code;
|
||||
|
||||
|
@ -4762,6 +4762,11 @@ void
|
||||
network_connection_pool_create_conn(network_mysqld_con *con)
|
||||
{
|
||||
chassis *srv = con->srv;
|
||||
|
||||
if (srv->maintain_close_mode) {
|
||||
return;
|
||||
}
|
||||
|
||||
chassis_private *g = srv->priv;
|
||||
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user