pgsql: Allow ENOENT in check_mode_recursive().

Lists: pgsql-committers
From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow ENOENT in check_mode_recursive().
Date: 2018-09-09 01:29:01
Message-ID: E1fyoX7-0003sY-1z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Allow ENOENT in check_mode_recursive().

Buildfarm member tern failed src/bin/pg_ctl/t/001_start_stop.pl when a
check_mode_recursive() call overlapped a server's startup-time deletion
of pg_stat/global.stat. Just warn. Also, include errno in the message.
Back-patch to v11, where check_mode_recursive() first appeared.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c85ad9cc63e1487758f3969e20826cac0e944a27

Modified Files
--------------
src/test/perl/TestLib.pm | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)