diff options
author | bell@sanja.is.com.ua <> | 2004-02-09 14:44:03 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-02-09 14:44:03 +0200 |
commit | 74a9ca1991b61c51d666ac5901b9358085deea6c (patch) | |
tree | d823a9d8db9cbcd5878af1651e74b2afa0277116 /sql/sql_acl.cc | |
parent | b99d13582b7d874879d6bdc0748aaef6a4fa2d08 (diff) | |
download | mariadb-git-74a9ca1991b61c51d666ac5901b9358085deea6c.tar.gz |
ufter revview fix (BUG#2120)
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 8ef6a32a430..21c57d79da4 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -173,7 +173,8 @@ my_bool acl_init(THD *org_thd, bool dont_read_acl_tables) tables[0].lock_type=tables[1].lock_type=tables[2].lock_type=TL_READ; tables[0].db=tables[1].db=tables[2].db=thd->db; - if (open_tables(thd,tables)) + uint counter; + if (open_tables(thd, tables, &counter)) { sql_print_error("Fatal error: Can't open privilege tables: %s", thd->net.last_error); @@ -2524,7 +2525,8 @@ my_bool grant_init(THD *org_thd) tables[0].lock_type=tables[1].lock_type=TL_READ; tables[0].db=tables[1].db=thd->db; - if (open_tables(thd,tables)) + uint counter; + if (open_tables(thd, tables, &counter)) goto end; TABLE *ptr[2]; // Lock tables for quick update |