gfphoenix78 commented on code in PR #1225:
URL: https://github.com/apache/cloudberry/pull/1225#discussion_r2212001349


##########
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:
   Why not to remove the thread-unsafe code?



-- 
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]

Reply via email to