Fix typos in pgoutput.c
authorMichael Paquier <michael@paquier.xyz>
Wed, 20 Sep 2023 01:02:12 +0000 (10:02 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 20 Sep 2023 01:02:12 +0000 (10:02 +0900)
RelationSyncCache was mentioned in two comments under a different name.
Issue noticed while reviewing a different patch touching the same area.

Introduced by 665d1fad99e7.

Discussion: https://postgr.es/m/ZQk1Ca_eFDTmBiZy@paquier.xyz

src/backend/replication/pgoutput/pgoutput.c

index b08ca55041750e356441d1ceb4979b7d82e84a7c..3d2becb45cfbf0501226cbdcb892a82a44013e19 100644 (file)
@@ -2262,8 +2262,8 @@ rel_sync_cache_relation_cb(Datum arg, Oid relid)
 
    /*
     * We can get here if the plugin was used in SQL interface as the
-    * RelSchemaSyncCache is destroyed when the decoding finishes, but there
-    * is no way to unregister the relcache invalidation callback.
+    * RelationSyncCache is destroyed when the decoding finishes, but there is
+    * no way to unregister the relcache invalidation callback.
     */
    if (RelationSyncCache == NULL)
        return;
@@ -2314,8 +2314,8 @@ rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
 
    /*
     * We can get here if the plugin was used in SQL interface as the
-    * RelSchemaSyncCache is destroyed when the decoding finishes, but there
-    * is no way to unregister the invalidation callbacks.
+    * RelationSyncCache is destroyed when the decoding finishes, but there is
+    * no way to unregister the invalidation callbacks.
     */
    if (RelationSyncCache == NULL)
        return;