[pg_rewind] use the passing callback instead of global function

Junwang Zhao <zhjwpku@gmail.com>

From: Junwang Zhao <zhjwpku@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-04-26T01:51:13Z
Lists: pgsql-hackers

Attachments

`local_traverse_files` and `libpq_traverse_files` both have a
callback parameter but instead use the global process_source_file
which is no good for function encapsulation.

-- 
Regards
Junwang Zhao

Commits

  1. Fix overridden callbacks in pg_rewind.