From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Subject: Should "CRC" be in uppercase?
Date: Mon, 25 Dec 2023 14:51:24 +0900 (JST)
Message-ID: <20231225.145124.1745560266993421173.horikyota.ntt@gmail.com> (raw)
A new function check_control_file() in pg_combinebackup.c has the
following message.
> pg_fatal("%s: crc is incorrect", controlpath);
I think "crc" should be in all uppercase in general and a brief
grep'ing told me that it is almost always or consistently used in
uppercase in our tree.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
Attachments:upper_case_crc.diff (text/x-patch, 621B) downloaddiff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.cindex b6ae6f2aef..049c60cbf8 100644--- a/src/bin/pg_combinebackup/pg_combinebackup.c+++ b/src/bin/pg_combinebackup/pg_combinebackup.c@@ -538,7 +538,7 @@ check_control_files(int n_backups, char **backup_dirs)
/* Control file contents not meaningful if CRC is bad. */
if (!crc_ok)
- pg_fatal("%s: crc is incorrect", controlpath);+ pg_fatal("%s: CRC is incorrect", controlpath);
/* Can't interpret control file if not current version. */
if (control_file->pg_control_version != PG_CONTROL_VERSION)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: horikyota.ntt@gmail.com
Subject: Re: Should "CRC" be in uppercase?
In-Reply-To: <20231225.145124.1745560266993421173.horikyota.ntt@gmail.com>
References: <20231225.145124.1745560266993421173.horikyota.ntt@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox