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

Commitaa2c91a

Browse files
committed
Fix argument length in client_message_shortcut in the arbiter code.
1 parent5ba5989 commitaa2c91a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎contrib/pg_dtm/dtmd/include/server.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#defineSERVER_H
33

44
#include<stdbool.h>
5+
#include"int.h"
56

67
/*
78
* You should not want to know what is inside those structures.
@@ -95,6 +96,6 @@ bool client_message_finish(client_t client);
9596
*
9697
* Returns 'true' on success, 'false' otherwise.
9798
*/
98-
boolclient_message_shortcut(client_tclient,long longarg);
99+
boolclient_message_shortcut(client_tclient,xid_targ);
99100

100101
#endif

‎contrib/pg_dtm/dtmd/src/clog.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int clog_read(clog_t clog, xid_t xid) {
133133
boolclog_write(clog_tclog,xid_txid,intstatus) {
134134
clogfile_t*file=clog_xid_to_file(clog,xid);
135135
if (!file) {
136-
debug("xid %016llx out of range, creating the file\n",xid);
136+
debug("xid %u out of range, creating the file\n",xid);
137137
clogfile_tnewfile;
138138
if (!clogfile_open_by_id(&newfile,clog->datadir,XID_TO_FILEID(xid), true)) {
139139
shout(

‎contrib/pg_dtm/dtmd/src/server.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool client_message_finish(client_t client) {
325325
returnstream_message_finish(client->stream);
326326
}
327327

328-
boolclient_message_shortcut(client_tclient,long longarg) {
328+
boolclient_message_shortcut(client_tclient,xid_targ) {
329329
if (!stream_message_start(client->stream,client->chan)) {
330330
return false;
331331
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp