summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 37e11d43573..be1d919c4cd 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1381,8 +1381,8 @@ static int safe_connect(THD* thd, MYSQL* mysql, MASTER_INFO* mi)
{
mysql_log.write(thd, COM_CONNECT_OUT, "%s@%s:%d",
mi->user, mi->host, mi->port);
-#ifdef STOP_IO_WITH_FD_CLOSE
- thd->set_active_fd(vio_fd(mysql->net.vio));
+#ifdef SIGNAL_WITH_VIO_CLOSE
+ thd->set_active_vio(mysql->net.vio);
#endif
}
@@ -1417,8 +1417,8 @@ replication resumed in log '%s' at position %s", glob_mi.user,
glob_mi.host, glob_mi.port,
RPL_LOG_NAME,
llstr(glob_mi.pos,llbuff));
-#ifdef STOP_IO_WITH_FD_CLOSE
- thd->set_active_fd(vio_fd(mysql->net.vio));
+#ifdef SIGNAL_WITH_VIO_CLOSE
+ thd->set_active_vio(mysql->net.vio);
#endif
}