diff options
author | thek@adventure.(none) <> | 2007-05-28 14:08:04 +0200 |
---|---|---|
committer | thek@adventure.(none) <> | 2007-05-28 14:08:04 +0200 |
commit | 5f06a456bf44a25799385bbbcbbd6394e7b7d3ce (patch) | |
tree | 59c95747962097d1e0f3aa02dad5b857869d7273 /sql/sql_update.cc | |
parent | 1bccb382bd77c7d213dfa8b96fcb13de8d6e65d9 (diff) | |
download | mariadb-git-5f06a456bf44a25799385bbbcbbd6394e7b7d3ce.tar.gz |
Bug#24988 FLUSH PRIVILEGES causes brief unavailability
- A race condition caused brief unavailablility when trying to acccess
a table.
- The variable 'grant_option' was removed to resolve the race condition and
to simplify the design pattern. This flag was originally intended to optimize
grant checks.
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index ef384c30b59..33261963fcc 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -936,7 +936,7 @@ reopen_tables: if (check_access(thd, want_privilege, tl->db, &tl->grant.privilege, 0, 0, test(tl->schema_table)) || - (grant_option && check_grant(thd, want_privilege, tl, 0, 1, 0))) + check_grant(thd, want_privilege, tl, 0, 1, 0)) DBUG_RETURN(TRUE); } } |