From: Tom Lane Date: Tue, 23 Jan 2001 23:32:45 +0000 (+0000) Subject: Narrow scope of critical section, per discussion 1/19/01. X-Git-Tag: REL7_1~699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c654c69c05b30401c93199dce07f9a04f3249c57;p=postgresql Narrow scope of critical section, per discussion 1/19/01. --- diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index 611f469761..9dcd6b5d98 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.184 2001/01/19 22:08:46 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.185 2001/01/23 23:32:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1904,7 +1904,6 @@ failed to add item with len = %lu to page %u (free space %lu, nusd %u, noff %u)" buf = ReadBuffer(onerel, vacpage->blkno); LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE); - START_CRIT_SECTION(); page = BufferGetPage(buf); num_tuples = 0; for (offnum = FirstOffsetNumber; @@ -1932,6 +1931,7 @@ failed to add item with len = %lu to page %u (free space %lu, nusd %u, noff %u)" } Assert(vacpage->offsets_free == num_tuples); + START_CRIT_SECTION(); uncnt = PageRepairFragmentation(page, unused); { XLogRecPtr recptr;