pgsql: Fix a race condition that I introduced into sinvaladt.c during

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a race condition that I introduced into sinvaladt.c during
Date: 2008-07-18 14:45:48
Message-ID: 20080718144548.D7C3D754A84@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix a race condition that I introduced into sinvaladt.c during the recent
rewrite. When called from SIInsertDataEntries, SICleanupQueue releases
the write lock if it has to issue a kill() to signal some laggard backend.
That still seems like a good idea --- but it's possible that by the time
we get the lock back, there are no longer enough free message slots to
satisfy SIInsertDataEntries' requirement. Must recheck, and repeat the
whole SICleanupQueue process if not. Noted while reading code.

Modified Files:
--------------
pgsql/src/backend/storage/ipc:
sinvaladt.c (r1.73 -> r1.74)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/sinvaladt.c?r1=1.73&r2=1.74)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2008-07-18 17:19:55 pgsql: In psql, run .psqlrc _after_ printing warnings and banner.
Previous Message User Nanardon 2008-07-18 13:34:34 pgrpm - pgrpm: - one more thanks