gfphoenix78 commented on code in PR #1225:
URL: https://github.com/apache/cloudberry/pull/1225#discussion_r2228160152
##########
src/bin/gpfdist/gpfdist.c:
##########
@@ -1600,7 +1603,11 @@ static void session_detach(request_t* r)
}
event_del(&session->ev);
+#if defined(EVENT__VERSION) && EVENT__NUMERIC_VERSION >= 0x02000100
+ evtimer_assign(&session->ev, gcb.event_base,
free_session_cb, session);
+#else
evtimer_set(&session->ev, free_session_cb, session);
+#endif
Review Comment:
The version of libevent on centos 7 is 2.0.21
`libevent-2.0.21-4.el7.x86_64`
It's a quite old version.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]