mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Marginal code cleanup for streaming replication.
There is no reason that proc.c should have to get involved in this dirty hack for letting the postmaster know which children are walsenders. Revert that file to the way it was, and confine the kluge to pmsignal.c and postmaster.c.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.221 2010/07/06 19:18:57 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.222 2010/08/23 17:20:01 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -39,7 +39,6 @@
|
||||
#include "access/xact.h"
|
||||
#include "miscadmin.h"
|
||||
#include "postmaster/autovacuum.h"
|
||||
#include "replication/walsender.h"
|
||||
#include "storage/ipc.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "storage/pmsignal.h"
|
||||
@ -297,12 +296,7 @@ InitProcess(void)
|
||||
* this; it probably should.)
|
||||
*/
|
||||
if (IsUnderPostmaster && !IsAutoVacuumLauncherProcess())
|
||||
{
|
||||
if (am_walsender)
|
||||
MarkPostmasterChildWalSender();
|
||||
else
|
||||
MarkPostmasterChildActive();
|
||||
}
|
||||
MarkPostmasterChildActive();
|
||||
|
||||
/*
|
||||
* Initialize all fields of MyProc, except for the semaphore which was
|
||||
|
Reference in New Issue
Block a user