diff options
author | unknown <thek@adventure.(none)> | 2007-05-28 14:08:04 +0200 |
---|---|---|
committer | unknown <thek@adventure.(none)> | 2007-05-28 14:08:04 +0200 |
commit | 416122b29c0f73b6f70cf63a0411cf465fd307a8 (patch) | |
tree | 59c95747962097d1e0f3aa02dad5b857869d7273 /sql/sql_db.cc | |
parent | 2c06c07a7a7110b0d991603a036997eb463be12e (diff) | |
download | mariadb-git-416122b29c0f73b6f70cf63a0411cf465fd307a8.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.
sql/mysql_priv.h:
- removed 'grant_option' flag.
sql/sql_acl.cc:
- removed 'grant_option' flag.
sql/sql_db.cc:
- removed 'grant_option' flag.
sql/sql_insert.cc:
- removed 'grant_option' flag.
sql/sql_parse.cc:
- removed 'grant_option' flag.
- removed unnecessary variables found_access, found
sql/sql_show.cc:
- removed 'grant_option' flag.
sql/sql_update.cc:
- removed 'grant_option' flag.
sql/sql_view.cc:
- removed 'grant_option' flag.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index cfd610638ce..a8f7eaa6394 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -1448,7 +1448,7 @@ bool mysql_change_db(THD *thd, const LEX_STRING *new_db_name, bool force_switch) if (!force_switch && !(db_access & DB_ACLS) && - (!grant_option || check_grant_db(thd, new_db_file_name.str))) + check_grant_db(thd, new_db_file_name.str)) { my_error(ER_DBACCESS_DENIED_ERROR, MYF(0), sctx->priv_user, |