]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Modify sinval so that InvalidateSharedInvalid() does not hold
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Sep 1999 18:36:45 +0000 (18:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Sep 1999 18:36:45 +0000 (18:36 +0000)
commit8add6d71cff28d087872215b02c7a0b84ba786c4
tree725119fddb5021fb515e4c8a46dbc18b08f9ed43
parentae01c7f5bb4f40386e64138ae33b12f862f13796
Modify sinval so that InvalidateSharedInvalid() does not hold
the SInval spinlock while it is calling the passed invalFunction or
resetFunction.  This is necessary to avoid deadlock with lmgr change;
InvalidateSharedInvalid can be called recursively now.  It should be
a good performance improvement anyway --- holding a spinlock for more
than a very short interval is a no-no.
src/backend/storage/ipc/sinval.c
src/backend/storage/ipc/sinvaladt.c
src/include/storage/sinvaladt.h