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

Commit81f2e51

Browse files
committed
Fix query cancellation.
In commitfe0a0b5, the datatype used for MyCancelKey and other variablesthat store cancel keys were changed from long to uint32, but I missed thisone. That broke query cancellation on platforms where long is wider than 32bits.Report by Andres Freund, fix by Michael Paquier.
1 parent9790b87 commit81f2e51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ processCancelRequest(Port *port, void *pkt)
22162216
{
22172217
CancelRequestPacket*canc= (CancelRequestPacket*)pkt;
22182218
intbackendPID;
2219-
longcancelAuthCode;
2219+
int32cancelAuthCode;
22202220
Backend*bp;
22212221

22222222
#ifndefEXEC_BACKEND
@@ -2226,7 +2226,7 @@ processCancelRequest(Port *port, void *pkt)
22262226
#endif
22272227

22282228
backendPID= (int)ntohl(canc->backendPID);
2229-
cancelAuthCode= (long)ntohl(canc->cancelAuthCode);
2229+
cancelAuthCode= (int32)ntohl(canc->cancelAuthCode);
22302230

22312231
/*
22322232
* See if we have a matching backend. In the EXEC_BACKEND case, we can no

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp