mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@@ -10507,6 +10507,7 @@ int mysql_alter_user(THD* thd, List<LEX_USER> &users_list)
|
||||
DBUG_ENTER("mysql_alter_user");
|
||||
int result= 0;
|
||||
String wrong_users;
|
||||
bool some_users_altered= false;
|
||||
|
||||
/* The only table we're altering is the user table. */
|
||||
Grant_tables tables(Table_user, TL_WRITE);
|
||||
@@ -10532,6 +10533,7 @@ int mysql_alter_user(THD* thd, List<LEX_USER> &users_list)
|
||||
result= TRUE;
|
||||
continue;
|
||||
}
|
||||
some_users_altered= true;
|
||||
}
|
||||
|
||||
/* Unlock ACL data structures. */
|
||||
@@ -10556,6 +10558,10 @@ int mysql_alter_user(THD* thd, List<LEX_USER> &users_list)
|
||||
wrong_users.c_ptr_safe());
|
||||
}
|
||||
}
|
||||
|
||||
if (some_users_altered)
|
||||
result|= write_bin_log(thd, FALSE, thd->query(),
|
||||
thd->query_length());
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user