summaryrefslogtreecommitdiff
path: root/sql/threadpool_unix.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-12-29 12:17:30 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-12-29 12:17:30 +0100
commitb9f2fb84f6f6224290fa8d65286a1862448e93b8 (patch)
tree429618cff1673e8d1af5cd53076c97e449faf843 /sql/threadpool_unix.cc
parent54b61b8b44eb0ff5257bbac8b38578c4c5f2ed38 (diff)
downloadmariadb-git-b9f2fb84f6f6224290fa8d65286a1862448e93b8.tar.gz
Fix LP#909414: Valgrind warnings in threadpool code
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r--sql/threadpool_unix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc
index d421870fcab..c936479a00c 100644
--- a/sql/threadpool_unix.cc
+++ b/sql/threadpool_unix.cc
@@ -203,6 +203,7 @@ static int io_poll_create()
int io_poll_associate_fd(int pollfd, int fd, void *data)
{
struct epoll_event ev;
+ ev.data.u64= 0; /* Keep valgrind happy */
ev.data.ptr= data;
ev.events= EPOLLIN|EPOLLET|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT;
return epoll_ctl(pollfd, EPOLL_CTL_ADD, fd, &ev);
@@ -213,6 +214,7 @@ int io_poll_associate_fd(int pollfd, int fd, void *data)
int io_poll_start_read(int pollfd, int fd, void *data)
{
struct epoll_event ev;
+ ev.data.u64= 0; /* Keep valgrind happy */
ev.data.ptr= data;
ev.events= EPOLLIN|EPOLLET|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT;
return epoll_ctl(pollfd, EPOLL_CTL_MOD, fd, &ev);