Since this is trying to add a SharedInvalRelSyncMsg rather than
a SharedInvalRelcacheMsg, it should use rs rather than rc.
This makes no difference as things stand, because the two structure
definitions are identical (except for the capitalization of "relid"),
but it's still a good idea to fix it.
Co-authored-by: Stolpovskikh Danil <d.stolpovskikh@ftdata.ru>
Co-authored-by: Robert Haas <rhaas@postgresql.org>
Discussion: http://postgr.es/m/
bd6a5735b72b4afe99af49c3c62901d6@localhost.localdomain
/* Don't add a duplicate item. */
ProcessMessageSubGroup(group, RelCacheMsgs,
- if (msg->rc.id == SHAREDINVALRELSYNC_ID &&
- (msg->rc.relId == relId ||
- msg->rc.relId == InvalidOid))
+ if (msg->rs.id == SHAREDINVALRELSYNC_ID &&
+ (msg->rs.relid == relId ||
+ msg->rs.relid == InvalidOid))
return);
/* OK, add the item */
- msg.rc.id = SHAREDINVALRELSYNC_ID;
- msg.rc.dbId = dbId;
- msg.rc.relId = relId;
+ msg.rs.id = SHAREDINVALRELSYNC_ID;
+ msg.rs.dbId = dbId;
+ msg.rs.relid = relId;
/* check AddCatcacheInvalidationMessage() for an explanation */
VALGRIND_MAKE_MEM_DEFINED(&msg, sizeof(msg));