Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23057f5

Browse files
committed
Move ProcState definition into sinvaladt.c from sinvaladt.h, since it's not
needed anywhere after my previous patch. Noticed by Tom Lane.Also, remove #include <signal.h> from sinval.c.
1 parent0c5962c commit23057f5

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

‎src/backend/storage/ipc/sinval.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinval.c,v 1.84 2008/03/16 19:47:33 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinval.c,v 1.85 2008/03/17 11:50:26 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

17-
#include<signal.h>
18-
1917
#include"access/xact.h"
2018
#include"commands/async.h"
2119
#include"miscadmin.h"

‎src/backend/storage/ipc/sinvaladt.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.67 2008/03/16 19:47:33 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.68 2008/03/17 11:50:27 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -64,6 +64,13 @@
6464
#defineMAXNUMMESSAGES 4096
6565
#defineMSGNUMWRAPAROUND (MAXNUMMESSAGES * 4096)
6666

67+
/* Per-backend state in shared invalidation structure */
68+
typedefstructProcState
69+
{
70+
/* nextMsgNum is -1 in an inactive ProcState array entry. */
71+
intnextMsgNum;/* next message number to read, or -1 */
72+
boolresetState;/* true, if backend has to reset its state */
73+
}ProcState;
6774

6875
/* Shared cache invalidation memory segment */
6976
typedefstructSISeg

‎src/include/storage/sinvaladt.h

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
* sinvaladt.h
44
* POSTGRES shared cache invalidation segment definitions.
55
*
6+
* The shared cache invalidation manager is responsible for transmitting
7+
* invalidation messages between backends.Any message sent by any backend
8+
* must be delivered to all already-running backends before it can be
9+
* forgotten.
10+
*
11+
* The struct type SharedInvalidationMessage, defining the contents of
12+
* a single message, is defined in sinval.h.
613
*
714
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
815
* Portions Copyright (c) 1994, Regents of the University of California
916
*
10-
* $PostgreSQL: pgsql/src/include/storage/sinvaladt.h,v 1.46 2008/03/16 19:47:34 alvherre Exp $
17+
* $PostgreSQL: pgsql/src/include/storage/sinvaladt.h,v 1.47 2008/03/17 11:50:27 alvherre Exp $
1118
*
1219
*-------------------------------------------------------------------------
1320
*/
@@ -16,24 +23,6 @@
1623

1724
#include"storage/sinval.h"
1825

19-
/*
20-
* The shared cache invalidation manager is responsible for transmitting
21-
* invalidation messages between backends.Any message sent by any backend
22-
* must be delivered to all already-running backends before it can be
23-
* forgotten.
24-
*
25-
* The struct type SharedInvalidationMessage, defining the contents of
26-
* a single message, is defined in sinval.h.
27-
*/
28-
29-
/* Per-backend state in shared invalidation structure */
30-
typedefstructProcState
31-
{
32-
/* nextMsgNum is -1 in an inactive ProcState array entry. */
33-
intnextMsgNum;/* next message number to read, or -1 */
34-
boolresetState;/* true, if backend has to reset its state */
35-
}ProcState;
36-
3726

3827
/*
3928
* prototypes for functions in sinvaladt.c

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp