On Tue, Apr 3, 2018 at 4:25 PM, Tom Lane <[email protected]> wrote:
> Magnus Hagander <[email protected]> writes:
> > Seems the tests are failing on prairiedog:
> > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?
> nm=prairiedog&dt=2018-04-03%2012%3A15%3A27&stg=pg_basebackup-check
> > I don't have time to dive in right now, but that seems interesting --
> it's
> > reporting the failures, but it's then reporting the total number of
> > failures as 0...
> > Note that prairedog is a PowerPC machine -- I bet that has something to
> do
> > with it.
>
> endianness issue? I can look closer if you can point me to where to look.
>
I think the problem comes from:
if (total_checksum_failures > 1)
ereport(WARNING,
(errmsg("%ld total checksum verification failures",
total_checksum_failures)));
That one actually logs a zero in the text. Which should not possibly ever
pr5int "0 total checksum verification failures".
Unless.. %ld is the wrong thing to print:
static int64 total_checksum_failures;
We should perhaps be using something other than %ld to print that?
--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>