Skip to content

Commit 77ed0c6

Browse files
committed
Tighten up includes in sinvaladt.h, twophase.h, proc.h
Remove proc.h from sinvaladt.h and twophase.h; also replace xlog.h in proc.h with xlogdefs.h.
1 parent eeece9e commit 77ed0c6

File tree

11 files changed

+13
-3
lines changed

11 files changed

+13
-3
lines changed

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include "replication/syncrep.h"
5959
#include "storage/fd.h"
6060
#include "storage/predicate.h"
61+
#include "storage/proc.h"
6162
#include "storage/procarray.h"
6263
#include "storage/sinvaladt.h"
6364
#include "storage/smgr.h"

src/backend/access/transam/xact.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "replication/syncrep.h"
4141
#include "storage/lmgr.h"
4242
#include "storage/predicate.h"
43+
#include "storage/proc.h"
4344
#include "storage/procarray.h"
4445
#include "storage/sinvaladt.h"
4546
#include "storage/smgr.h"

src/backend/storage/ipc/ipci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "storage/pg_shmem.h"
3434
#include "storage/pmsignal.h"
3535
#include "storage/predicate.h"
36+
#include "storage/proc.h"
3637
#include "storage/procarray.h"
3738
#include "storage/procsignal.h"
3839
#include "storage/sinvaladt.h"

src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "access/xact.h"
5252
#include "access/twophase.h"
5353
#include "miscadmin.h"
54+
#include "storage/proc.h"
5455
#include "storage/procarray.h"
5556
#include "storage/spin.h"
5657
#include "utils/builtins.h"

src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "miscadmin.h"
3939
#include "pg_trace.h"
4040
#include "pgstat.h"
41+
#include "storage/proc.h"
4142
#include "storage/sinvaladt.h"
4243
#include "storage/spin.h"
4344
#include "storage/standby.h"

src/backend/storage/lmgr/predicate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
#include "storage/bufmgr.h"
194194
#include "storage/predicate.h"
195195
#include "storage/predicate_internals.h"
196+
#include "storage/proc.h"
196197
#include "storage/procarray.h"
197198
#include "utils/rel.h"
198199
#include "utils/snapmgr.h"

src/backend/utils/init/postinit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "storage/proc.h"
4545
#include "storage/procarray.h"
4646
#include "storage/procsignal.h"
47+
#include "storage/proc.h"
4748
#include "storage/sinvaladt.h"
4849
#include "storage/smgr.h"
4950
#include "tcop/tcopprot.h"

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#include "storage/bufmgr.h"
6363
#include "storage/standby.h"
6464
#include "storage/fd.h"
65+
#include "storage/proc.h"
6566
#include "storage/predicate.h"
6667
#include "tcop/tcopprot.h"
6768
#include "tsearch/ts_cache.h"

src/include/access/twophase.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#ifndef TWOPHASE_H
1515
#define TWOPHASE_H
1616

17-
#include "storage/proc.h"
17+
#include "access/xlogdefs.h"
18+
#include "datatype/timestamp.h"
19+
#include "storage/lock.h"
1820

1921
/*
2022
* GlobalTransactionData is defined in twophase.c; other places have no

src/include/storage/proc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef _PROC_H_
1515
#define _PROC_H_
1616

17-
#include "access/xlog.h"
17+
#include "access/xlogdefs.h"
1818
#include "datatype/timestamp.h"
1919
#include "storage/latch.h"
2020
#include "storage/lock.h"

src/include/storage/sinvaladt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifndef SINVALADT_H
2323
#define SINVALADT_H
2424

25-
#include "storage/proc.h"
25+
#include "storage/lock.h"
2626
#include "storage/sinval.h"
2727

2828
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy