diff options
author | Noah Misch <noah@leadboat.com> | 2024-11-02 09:05:00 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-11-02 09:05:00 -0700 |
commit | c1099dd745b0135960895caa8892a1873ac6cbe5 (patch) | |
tree | 6f58878763cc63b66718f4894fbdbb880b0d8297 /src/backend/utils/cache/catcache.c | |
parent | bc6bad88572501aecaa2ac5d4bc900ac0fd457d5 (diff) |
Revert "For inplace update, send nontransactional invalidations."
This reverts commit 95c5acb3fc261067ab65ddc0b2dca8e162f09442 (v17) and
counterparts in each other non-master branch. If released, that commit
would have caused a worst-in-years minor release regression, via
undetected LWLock self-deadlock. This commit and its self-deadlock fix
warrant more bake time in the master branch.
Reported by Alexander Lakhin.
Discussion: https://postgr.es/m/10ec0bc3-5933-1189-6bb8-5dec4114558e@gmail.com
Diffstat (limited to 'src/backend/utils/cache/catcache.c')
-rw-r--r-- | src/backend/utils/cache/catcache.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index ea8ca0e1ac3..111d8a280a0 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -2288,8 +2288,7 @@ void PrepareToInvalidateCacheTuple(Relation relation, HeapTuple tuple, HeapTuple newtuple, - void (*function) (int, uint32, Oid, void *), - void *context) + void (*function) (int, uint32, Oid)) { slist_iter iter; Oid reloid; @@ -2330,7 +2329,7 @@ PrepareToInvalidateCacheTuple(Relation relation, hashvalue = CatalogCacheComputeTupleHashValue(ccp, ccp->cc_nkeys, tuple); dbid = ccp->cc_relisshared ? (Oid) 0 : MyDatabaseId; - (*function) (ccp->id, hashvalue, dbid, context); + (*function) (ccp->id, hashvalue, dbid); if (newtuple) { @@ -2339,7 +2338,7 @@ PrepareToInvalidateCacheTuple(Relation relation, newhashvalue = CatalogCacheComputeTupleHashValue(ccp, ccp->cc_nkeys, newtuple); if (newhashvalue != hashvalue) - (*function) (ccp->id, newhashvalue, dbid, context); + (*function) (ccp->id, newhashvalue, dbid); } } } |