]> granicus.if.org Git - postgresql/commitdiff
Fix off-by-one error in autovacuum shmem struct sizing. This could lead to
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Nov 2008 10:10:43 +0000 (10:10 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Nov 2008 10:10:43 +0000 (10:10 +0000)
autovacuum worker sending SIGUSR1 signal to wrong process, per Zou Yong's
report.

Backpatch to 8.3.

src/backend/postmaster/autovacuum.c

index 8f45d1d0c83693081a00e370227f6e79fe6b5eba..bf7c402f766ec1c4461f94614ceed4ca809b6213 100644 (file)
@@ -55,7 +55,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71.2.6 2008/07/23 20:21:04 alvherre Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71.2.7 2008/11/12 10:10:43 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -215,7 +215,7 @@ typedef enum
 {
        AutoVacForkFailed,                      /* failed trying to start a worker */
        AutoVacRebalance,                       /* rebalance the cost limits */
-       AutoVacNumSignals = AutoVacRebalance            /* must be last */
+       AutoVacNumSignals                       /* must be last */
 } AutoVacuumSignal;
 
 /*-------------