1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point

was removed.
This commit is contained in:
Alvaro Herrera
2007-09-12 02:05:48 +00:00
parent 861f7357b9
commit 9588e1bd65

View File

@ -36,7 +36,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.93 2007/09/10 21:40:03 alvherre Exp $ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.94 2007/09/12 02:05:48 alvherre Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -870,8 +870,10 @@ count_nondeletable_pages(Relation onerel, LVRelStats *vacrelstats)
/* /*
* We don't insert a vacuum delay point here, because we have an * We don't insert a vacuum delay point here, because we have an
* exclusive lock on the table which we want to hold for as short * exclusive lock on the table which we want to hold for as short
* a time as possible. * a time as possible. We still need to check for interrupts
* however.
*/ */
CHECK_FOR_INTERRUPTS();
blkno--; blkno--;