Use XLOG_CONTROL_FILE macro consistently for control file name.
authorFujii Masao <fujii@postgresql.org>
Mon, 7 Apr 2025 00:27:33 +0000 (09:27 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 7 Apr 2025 00:27:33 +0000 (09:27 +0900)
commit173c97812ffcc48082355df71470974c33379d3f
treeb2baf34d84037e2b9d70bd9ac7abbb65eb73c5a5
parenta233a603bab80fdf6da2b4908c98f166273aa0cb
Use XLOG_CONTROL_FILE macro consistently for control file name.

The XLOG_CONTROL_FILE macro (defined in access/xlog_internal.h)
represents the control file name. While some parts of the codebase already
use this macro, others previously hardcoded the file name as a string.

This commit replaces those hardcoded strings with the macro,
ensuring consistent usage throughout the code. This makes future
maintenance easier and improves searchability, for example when
grepping for control file usage.

Author: Anton A. Melnikov <a.melnikov@postgrespro.ru>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Masao Fujii <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/0841ec77-47e5-452a-adb4-c6fa55d605fc@postgrespro.ru
src/backend/backup/basebackup.c
src/backend/postmaster/postmaster.c
src/bin/pg_combinebackup/pg_combinebackup.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_rewind/filemap.c
src/bin/pg_rewind/pg_rewind.c
src/bin/pg_upgrade/controldata.c
src/bin/pg_verifybackup/astreamer_verify.c
src/bin/pg_verifybackup/pg_verifybackup.c
src/common/controldata_utils.c