pgsql: Fix overly strict assertion in SummarizeOldestCommittedSxact().

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix overly strict assertion in SummarizeOldestCommittedSxact().
Date: 2011-03-08 19:06:48
Message-ID: E1Px2F6-0007fk-ON@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix overly strict assertion in SummarizeOldestCommittedSxact(). There's a
race condition where SummarizeOldestCommittedSxact() is called even though
another backend already cleared out all finished sxact entries. That's OK,
RegisterSerializableTransactionInt() can just retry getting a news xact
slot from the available-list when that happens.

Reported by YAMAMOTO Takashi, bug #5918.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/46c333a9638b329a3c8076d978f27c5b05c0d5f0

Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-03-08 20:11:00 pgsql: Ignore files built by coverage builds
Previous Message Heikki Linnakangas 2011-03-08 19:00:22 pgsql: Don't throw a warning if vacuum sees PD_ALL_VISIBLE flag set on