diff options
author | unknown <kroki@mysql.com> | 2006-05-15 14:36:51 +0400 |
---|---|---|
committer | unknown <kroki@mysql.com> | 2006-05-15 14:36:51 +0400 |
commit | f298905dbef72c94f5c91e46d517864108bf4134 (patch) | |
tree | 9536581781ecce4fdb574232f4c33b9abb374193 /sql | |
parent | 2ce5e54e0a6628b61c653ebb9f40d0e51c5faa32 (diff) | |
parent | 5d023fa574310acf5025893035d6e74944207f35 (diff) | |
download | mariadb-git-f298905dbef72c94f5c91e46d517864108bf4134.tar.gz |
Merge mysql.com:/home/tomash/src/mysql_ab/mysql-5.0
into mysql.com:/home/tomash/src/mysql_ab/mysql-5.0-bug14635
sql/sql_acl.cc:
Auto merged
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_acl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 5b40f93f002..02b2f88676f 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -6023,20 +6023,21 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant, } /* table privileges */ + rw_rdlock(&LOCK_grant); if (grant->version != grant_version) { - rw_rdlock(&LOCK_grant); grant->grant_table= table_hash_search(sctx->host, sctx->ip, db, sctx->priv_user, table, 0); /* purecov: inspected */ grant->version= grant_version; /* purecov: inspected */ - rw_unlock(&LOCK_grant); } if (grant->grant_table != 0) { grant->privilege|= grant->grant_table->privs; } + rw_unlock(&LOCK_grant); + DBUG_PRINT("info", ("privilege 0x%lx", grant->privilege)); DBUG_VOID_RETURN; } |