Should we clear all these structure variable what we set above in case we are not adding our self to group, I can see it will not have any problem even if we don't clear them,
I think if we don't want to clear we can add some comment mentioning the same.
+proc->clogGroupMember = true;
+proc->clogGroupMemberXid = xid;
+proc->clogGroupMemberXidStatus = status;
+proc->clogGroupMemberPage = pageno;
+proc->clogGroupMemberLsn = lsn;
2.
Here we are updating in our own proc, I think we don't need atomic operation here, we are not yet added to the list.