Fix a typo in pg_receivewal.c's get_destination_dir()
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-26T16:34:13Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-a-typo-in-pg_receivewal.c-s-get_destination_d.patch (application/octet-stream) patch v1-0001
Hi, It looks like there's a typo in pg_receivewal.c's get_destination_dir(), that is, use the function parameter dest_folder instead of global variable basedir in the error message. Although there's no harm in it as basedir is a global variable in pg_receivewal.c, let's use the function parameter to be in sync with close_destination_dir. Attaching a tiny patch to fix it. Regards, Bharath Rupireddy.
Commits
-
Fix use of wrong variable in pg_receivewal's get_destination_dir().
- 1155d8b8d52e 15.0 landed