Skip to content

Commit c654c69

Browse files
committed
Narrow scope of critical section, per discussion 1/19/01.
1 parent 4e27b30 commit c654c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/vacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.184 2001/01/19 22:08:46 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.185 2001/01/23 23:32:45 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1904,7 +1904,6 @@ failed to add item with len = %lu to page %u (free space %lu, nusd %u, noff %u)"
19041904

19051905
buf = ReadBuffer(onerel, vacpage->blkno);
19061906
LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE);
1907-
START_CRIT_SECTION();
19081907
page = BufferGetPage(buf);
19091908
num_tuples = 0;
19101909
for (offnum = FirstOffsetNumber;
@@ -1932,6 +1931,7 @@ failed to add item with len = %lu to page %u (free space %lu, nusd %u, noff %u)"
19321931

19331932
}
19341933
Assert(vacpage->offsets_free == num_tuples);
1934+
START_CRIT_SECTION();
19351935
uncnt = PageRepairFragmentation(page, unused);
19361936
{
19371937
XLogRecPtr recptr;

0 commit comments

Comments
 (0)