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

Commit2c86077

Browse files
committed
struct PQWalReceiverFunctions: use designated initializers
We now require that compilers support this, and it makes the code easierto trace, so change it. I'm fixated on this particular struct becauseI've had to navigate around it a number of times, but there are otherselsewhere that could use the same treatment.Discussion:https://postgr.es/m/20220810140300.ixhbmm4svo5yypv6@alvherre.pgsql
1 parent4e6dcbb commit2c86077

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ static WalRcvExecResult *libpqrcv_exec(WalReceiverConn *conn,
8282
staticvoidlibpqrcv_disconnect(WalReceiverConn*conn);
8383

8484
staticWalReceiverFunctionsTypePQWalReceiverFunctions= {
85-
libpqrcv_connect,
86-
libpqrcv_check_conninfo,
87-
libpqrcv_get_conninfo,
88-
libpqrcv_get_senderinfo,
89-
libpqrcv_identify_system,
90-
libpqrcv_server_version,
91-
libpqrcv_readtimelinehistoryfile,
92-
libpqrcv_startstreaming,
93-
libpqrcv_endstreaming,
94-
libpqrcv_receive,
95-
libpqrcv_send,
96-
libpqrcv_create_slot,
97-
libpqrcv_get_backend_pid,
98-
libpqrcv_exec,
99-
libpqrcv_disconnect
85+
.walrcv_connect=libpqrcv_connect,
86+
.walrcv_check_conninfo=libpqrcv_check_conninfo,
87+
.walrcv_get_conninfo=libpqrcv_get_conninfo,
88+
.walrcv_get_senderinfo=libpqrcv_get_senderinfo,
89+
.walrcv_identify_system=libpqrcv_identify_system,
90+
.walrcv_server_version=libpqrcv_server_version,
91+
.walrcv_readtimelinehistoryfile=libpqrcv_readtimelinehistoryfile,
92+
.walrcv_startstreaming=libpqrcv_startstreaming,
93+
.walrcv_endstreaming=libpqrcv_endstreaming,
94+
.walrcv_receive=libpqrcv_receive,
95+
.walrcv_send=libpqrcv_send,
96+
.walrcv_create_slot=libpqrcv_create_slot,
97+
.walrcv_get_backend_pid=libpqrcv_get_backend_pid,
98+
.walrcv_exec=libpqrcv_exec,
99+
.walrcv_disconnect=libpqrcv_disconnect
100100
};
101101

102102
/* Prototypes for private functions */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp