]> granicus.if.org Git - postgresql/commitdiff
Remove unnecessary definition for autovacuum in SignalSomeChildren.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 17 Dec 2010 18:56:54 +0000 (15:56 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 17 Dec 2010 18:59:19 +0000 (15:59 -0300)
src/backend/postmaster/postmaster.c

index 2b12b1704cc6d69038b5b8e719431fba383cdbc6..a46a323881de752ea46fc1bbd6816e0690fd795a 100644 (file)
@@ -357,7 +357,6 @@ static void signal_child(pid_t pid, int signal);
 static bool SignalSomeChildren(int signal, int targets);
 
 #define SignalChildren(sig)                       SignalSomeChildren(sig, BACKEND_TYPE_ALL)
-#define SignalAutovacWorkers(sig)  SignalSomeChildren(sig, BACKEND_TYPE_AUTOVAC)
 
 /*
  * Possible types of a backend. These are OR-able request flag bits
@@ -2179,7 +2178,7 @@ pmdie(SIGNAL_ARGS)
                                pmState == PM_HOT_STANDBY || pmState == PM_STARTUP)
                        {
                                /* autovacuum workers are told to shut down immediately */
-                               SignalAutovacWorkers(SIGTERM);
+                               SignalSomeChildren(SIGTERM, BACKEND_TYPE_AUTOVAC);
                                /* and the autovac launcher too */
                                if (AutoVacPID != 0)
                                        signal_child(AutoVacPID, SIGTERM);