Fix use of wrong variable in pg_receivewal's get_destination_dir().

Andres Freund <andres@anarazel.de>

Commit: 1155d8b8d52ed8705fd8386eaa64fb05c04170c6
Author: Andres Freund <andres@anarazel.de>
Date: 2022-02-27T00:43:54Z
Releases: 15.0
Fix use of wrong variable in pg_receivewal's get_destination_dir().

The global variable wrongly used is always the one passed to
get_destination_dir(), so there currently are no negative consequences.

Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CALj2ACUT0C2LQwhyLXTQdj8T9SxZa5j7cmu-UOz0cZ8_D5edjg@mail.gmail.com

Files

PathChange+/−
src/bin/pg_basebackup/pg_receivewal.c modified +1 −1

Discussion