Minor code cleanup for perform_base_backup().

Robert Haas <rhaas@postgresql.org>

Commit: 453e0e3f0ef3202386b553719f628cef93ff95a7
Author: Robert Haas <rhaas@postgresql.org>
Date: 2020-06-17T15:05:42Z
Releases: 14.0
Minor code cleanup for perform_base_backup().

Merge two calls to sendDir() that are exactly the same except for
the fifth argument. Adjust comments to match.

Also, don't bother checking whether tblspc_map_file is NULL. We
initialize it in all cases, so it can't be.

Patch by me, reviewed by Amit Kapila and Kyotaro Horiguchi.

Discussion: http://postgr.es/m/CA+TgmoYq+59SJ2zBbP891ngWPA9fymOqntqYcweSDYXS2a620A@mail.gmail.com

Files

PathChange+/−
src/backend/replication/basebackup.c modified +9 −11

Discussion