summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 757d8bc212d..fb7b9275d0d 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -37,7 +37,7 @@ typedef bool (*CHECK_KILLED_FUNC)(THD*,void*);
volatile bool slave_sql_running = 0, slave_io_running = 0;
char* slave_load_tmpdir = 0;
MASTER_INFO *active_mi;
-bool replicate_same_server_id;
+my_bool replicate_same_server_id;
ulonglong relay_log_space_limit = 0;
/*
@@ -2426,17 +2426,10 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type)
DBUG_ENTER("init_slave_thread");
thd->system_thread = (thd_type == SLAVE_THD_SQL) ?
SYSTEM_THREAD_SLAVE_SQL : SYSTEM_THREAD_SLAVE_IO;
- /*
- The two next lines are needed for replication of SP (CREATE PROCEDURE
- needs a valid user to store in mysql.proc).
- */
- thd->priv_user= (char *) "";
- thd->priv_host[0]= '\0';
- thd->host_or_ip= "";
+ thd->security_ctx->skip_grants();
thd->client_capabilities = 0;
my_net_init(&thd->net, 0);
thd->net.read_timeout = slave_net_timeout;
- thd->master_access= ~(ulong)0;
thd->slave_thread = 1;
set_slave_thread_options(thd);
/*