From: Robert Haas Date: Thu, 11 Jun 2026 19:55:44 +0000 (-0400) Subject: Fix type confusion in AddRelsyncInvalidationMessage X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=99db753c656946bfd1d4ddd3978ebfcee6fb86c0;p=thirdparty%2Fpostgresql.git Fix type confusion in AddRelsyncInvalidationMessage 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 Co-authored-by: Robert Haas Discussion: http://postgr.es/m/bd6a5735b72b4afe99af49c3c62901d6@localhost.localdomain --- diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index efc8b7b9122..63dc36d4d91 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -509,15 +509,15 @@ AddRelsyncInvalidationMessage(InvalidationMsgsGroup *group, /* 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));