diff options
| author | Fujii Masao | 2025-11-12 23:44:33 +0000 |
|---|---|---|
| committer | Fujii Masao | 2025-11-12 23:44:33 +0000 |
| commit | 705601c5aeab56aef62dd69ac2b7acf662f08e9c (patch) | |
| tree | 099c1c45d79d17214d4d72cb5bf0f58f0fb15442 /src/backend/libpq/be-secure-openssl.c | |
| parent | 180e7abe68040375b77450d389dafbb0f11186e7 (diff) | |
pg_logical_slot_get_changes_guts() previously assigned InvalidXLogRecPtr to
the local variable upto_nchanges, which is of type int32, not XLogRecPtr.
While this caused no functional issue since InvalidXLogRecPtr is defined as 0,
it was semantically incorrect.
This commit fixes the issue by updating pg_logical_slot_get_changes_guts()
to set upto_nchanges to 0 instead of InvalidXLogRecPtr.
No backpatch is needed, as the previous behavior was harmless.
Author: Fujii Masao <[email protected]>
Reviewed-by: Steven Niu <[email protected]>
Reviewed-by: Xuneng Zhou <[email protected]>
Discussion: https://postgr.es/m/CAHGQGwHKHuR5NGnGxU3+ebz7cbC1ZAR=AgG4Bueq==Lj6iX8Sw@mail.gmail.com
Diffstat (limited to 'src/backend/libpq/be-secure-openssl.c')
0 files changed, 0 insertions, 0 deletions
