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

Commit0f1433f

Browse files
committed
Fix a few oversights in the longer cancel keys patch
Change MyCancelKeyLength's type from uint8 to int. While it alwaysfits in a uint8, plain int is less surprising, as there's noparticular reason for it to be uint8.Fix one ProcSignalInit caller that passed 'false' instead of NULL forthe pointer argument.Author: Peter Eisentraut <peter@eisentraut.org>Discussion:https://www.postgresql.org/message-id/61be9e31-7b7d-49d5-bc11-721800d89d64@eisentraut.org
1 parentef366b7 commit0f1433f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/backend/postmaster/auxprocess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ AuxiliaryProcessMainCommon(void)
6666

6767
BaseInit();
6868

69-
ProcSignalInit(false,0);
69+
ProcSignalInit(NULL,0);
7070

7171
/*
7272
* Auxiliary processes don't run transactions, but they may need a

‎src/backend/utils/init/globals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ TimestampTz MyStartTimestamp;
5151
structClientSocket*MyClientSocket;
5252
structPort*MyProcPort;
5353
charMyCancelKey[MAX_CANCEL_KEY_LENGTH];
54-
uint8MyCancelKeyLength=0;
54+
intMyCancelKeyLength=0;
5555
intMyPMChildSlot;
5656

5757
/*

‎src/include/miscadmin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ extern PGDLLIMPORT TimestampTz MyStartTimestamp;
193193
externPGDLLIMPORTstructPort*MyProcPort;
194194
externPGDLLIMPORTstructLatch*MyLatch;
195195
externPGDLLIMPORTcharMyCancelKey[];
196-
externPGDLLIMPORTuint8MyCancelKeyLength;
196+
externPGDLLIMPORTintMyCancelKeyLength;
197197
externPGDLLIMPORTintMyPMChildSlot;
198198

199199
externPGDLLIMPORTcharOutputFileName[];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp