summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-12-20 12:14:49 +0400
committerAlexander Barkov <bar@mariadb.org>2017-12-20 12:14:49 +0400
commitc58df0cdd40258254b40f501857106c843347e39 (patch)
tree186a40008453451e2fc43e6f3eeb33dcb9dd3f8d /sql/sql_acl.cc
parent64e1dda0a007d12e3826252866123c3e790a0357 (diff)
downloadmariadb-git-c58df0cdd40258254b40f501857106c843347e39.tar.gz
MDEV-14031 Password policy causes replication failure
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 5ccc5f75118..6029f4ed71a 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -9507,13 +9507,13 @@ bool mysql_create_user(THD *thd, List <LEX_USER> &list, bool handle_as_role)
}
}
- binlog= true;
if (replace_user_table(thd, tables[USER_TABLE].table, *user_name, 0, 0, 1, 0))
{
append_user(thd, &wrong_users, user_name);
result= TRUE;
continue;
}
+ binlog= true;
// every created role is automatically granted to its creator-admin
if (handle_as_role)