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

Commit03f8e9a

Browse files
committed
Fix incorrect assertion in libpqwalreceiver
Was supposed to check the length of the array, but was checking itssize in bytes.Author: Jacob Brazeal <jacob.brazeal@gmail.com>Discussion:https://www.postgresql.org/message-id/CA%2BCOZaA_9afJxj9ZuO73U5P7WXP%2BZM9NGnZvTDCmBFz0FGP%2BwA@mail.gmail.com
1 parent2a943af commit03f8e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ libpqrcv_connect(const char *conninfo, bool replication, bool logical,
208208
keys[++i]=NULL;
209209
vals[i]=NULL;
210210

211-
Assert(i<sizeof(keys));
211+
Assert(i<lengthof(keys));
212212

213213
conn=palloc0(sizeof(WalReceiverConn));
214214
conn->streamConn=PQconnectStartParams(keys,vals,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp