From 0388d603310cc48da1e86bafa03ffbb30f8f373f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 12 Oct 2016 02:50:43 +0000 Subject: [PATCH] Possible fix for epoll() --- lib/MySQL_Thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index aaa1d6f32..6c40874e7 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -1906,6 +1906,7 @@ __run_skip_1: epoll_ctl (efd, EPOLL_CTL_ADD, myds->fd, &event); } spin_wrunlock(&GloMTH->rwlock_idles); + goto __run_skip_1a; } for (n = 0; n < mypolls.len; n++) { MySQL_Data_Stream *myds=NULL; @@ -2025,7 +2026,7 @@ __run_skip_1: } spin_wrunlock(&GloMTH->rwlock_resumes); } - +__run_skip_1a: spin_wrunlock(&thread_mutex); while ((n=__sync_add_and_fetch(&mypolls.pending_listener_add,0))) { // spin here