From 6fe2861c2b39f56542011bd24fd4140ee7293b7b Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Fri, 21 Jun 2024 14:28:09 +0500 Subject: [PATCH] Replaced mysql_thread___poll_timeout with pgsql_thread___poll_timeout --- lib/PgSQL_Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PgSQL_Thread.cpp b/lib/PgSQL_Thread.cpp index cb3d47298..2f85d4dc7 100644 --- a/lib/PgSQL_Thread.cpp +++ b/lib/PgSQL_Thread.cpp @@ -2980,7 +2980,7 @@ void PgSQL_Thread::run() { GloPgSQL_Logger->flush(); pre_poll_time = curtime; - int ttw = (mypolls.poll_timeout ? (mypolls.poll_timeout / 1000 < (unsigned int)pgsql_thread___poll_timeout ? mypolls.poll_timeout / 1000 : mysql_thread___poll_timeout) : mysql_thread___poll_timeout); + int ttw = (mypolls.poll_timeout ? (mypolls.poll_timeout / 1000 < (unsigned int)pgsql_thread___poll_timeout ? mypolls.poll_timeout / 1000 : pgsql_thread___poll_timeout) : pgsql_thread___poll_timeout); #ifdef IDLE_THREADS if (GloVars.global.idle_threads && idle_maintenance_thread) { memset(events, 0, sizeof(struct epoll_event) * MY_EPOLL_THREAD_MAXEVENTS); // let's make valgrind happy. It also seems that needs to be zeroed anyway