avamingli commented on code in PR #1020: URL: https://github.com/apache/cloudberry/pull/1020#discussion_r2018286523
########## src/backend/access/transam/parallel.c: ########## @@ -1680,6 +1680,9 @@ void GpDestroyParallelDSMEntry() ParallelEntryTag tag; + if (!ParallelSession || !ParallelSession->segment) + return; Review Comment: I just remember that there is no parallel on QD, so Gp_role seems the simplest way for this. -- 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: commits-unsubscr...@cloudberry.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org For additional commands, e-mail: commits-h...@cloudberry.apache.org