diff options
author | monty@mashka.mysql.fi <> | 2002-06-12 15:04:18 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-06-12 15:04:18 +0300 |
commit | b8421d34ec13d626bb29a2f39021e226bf9ff74e (patch) | |
tree | 8495f49bd4d6cb6596a29d60137462d0563ed9ee /sql/repl_failsafe.cc | |
parent | 2aecdd1a91bf8386829146609ce0219c51793841 (diff) | |
download | mariadb-git-b8421d34ec13d626bb29a2f39021e226bf9ff74e.tar.gz |
Added the following new privleges:
SHOW DATABASES
CREATE TEMPORARY TABLE
LOCK TABLES
REPLICATION SLAVE & REPLICATION CLIENT
SUPER
EXECUTE
All scripts & documentation is updated for this change.
Added better error messages for global privileges
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index 6645f7a1eed..3b63a12c05c 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -24,7 +24,6 @@ #include "mini_client.h" #include "log_event.h" #include <mysql.h> -#include <thr_alarm.h> #define SLAVE_LIST_CHUNK 128 #define SLAVE_ERRMSG_SIZE (FN_REFLEN+64) @@ -150,7 +149,7 @@ int register_slave(THD* thd, uchar* packet, uint packet_length) int res = 1; uchar* p = packet, *p_end = packet + packet_length; - if (check_access(thd, FILE_ACL, any_db)) + if (check_access(thd, REPL_SLAVE_ACL, any_db)) return 1; if (!(si = (SLAVE_INFO*)my_malloc(sizeof(SLAVE_INFO), MYF(MY_WME)))) |