git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e0bb5d0) | patch
Fix overridden callbacks in pg_rewind.
Tue, 2 May 2023 11:15:29 +0000 (13:15 +0200)
Tue, 2 May 2023 11:15:29 +0000 (13:15 +0200)
commit 08237056f84e3a9ed75e8a698428c669f4d35db4
Fix overridden callbacks in pg_rewind.

The <source>_traverse_files functions take a callback for processing
files, but both the local and libpq source implementations called the
function directly without using the callback argument. While there is
no bug right now as the function called is the same as the callback,
fix by calling the callback to reduce the risk of subtle bugs in the
future.

Author: Junwang Zhao <zhjwpku@gmail.com>
Reviewed-by: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAEG8a3Jdwgh+PZr2zh1=t8apA4Yz8tKq+uubPqoCt14nvWKHEw@mail.gmail.com
src/bin/pg_rewind/libpq_source.c diff | blob | blame | history
src/bin/pg_rewind/local_source.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /