From: Guillaume Lelarge Date: Fri, 22 Apr 2011 14:33:36 +0000 (-0400) Subject: Fix typo in check_wal_files. X-Git-Tag: 2.18.0~59 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=69ad9d6039172e1ccf46b6320c9d5e960daebad5;p=check_postgres.git Fix typo in check_wal_files. --- diff --git a/check_postgres.pl b/check_postgres.pl index 33ede0950..41c99bc9d 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -7560,7 +7560,7 @@ sub check_wal_files { my ($warning, $critical) = validate_range({type => 'positive integer', leastone => 1}); ## Figure out where the pg_xlog directory is - $SQL = q{SELECT count(*) AS count FROM pg_ls_dir('pg_xlog') WHERE pg_ls_dir ~ E'^[0-9A-F]{24}$extrabit$'}; ## no critic (RequireInterpolationOfMetachars) + $SQL = qq{SELECT count(*) AS count FROM pg_ls_dir('pg_xlog') WHERE pg_ls_dir ~ E'^[0-9A-F]{24}$extrabit$'}; ## no critic (RequireInterpolationOfMetachars) my $info = run_command($SQL, {regex => qr[\d] });