summaryrefslogtreecommitdiff
path: root/sql/threadpool_unix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r--sql/threadpool_unix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc
index f66c862dd0f..7f7d52eef1c 100644
--- a/sql/threadpool_unix.cc
+++ b/sql/threadpool_unix.cc
@@ -275,7 +275,7 @@ int io_poll_start_read(int pollfd, int fd, void *data)
int io_poll_associate_fd(int pollfd, int fd, void *data)
{
- return io_poll_start_read(poolfd,fd, data);
+ return io_poll_start_read(pollfd,fd, data);
}
@@ -338,7 +338,7 @@ static int io_poll_associate_fd(int pollfd, int fd, void *data)
int io_poll_disassociate_fd(int pollfd, int fd)
{
- return 0;
+ return port_dissociate(pollfd, PORT_SOURCE_FD, fd);
}
int io_poll_wait(int pollfd, native_event *events, int maxevents, int timeout_ms)
@@ -1532,4 +1532,4 @@ int tp_get_idle_thread_count()
sum+= (all_groups[i].thread_count - all_groups[i].active_thread_count);
}
return sum;
-} \ No newline at end of file
+}