Fix typo in check_wal_files.
authorGuillaume Lelarge <[email protected]>
Fri, 22 Apr 2011 14:33:36 +0000 (10:33 -0400)
committerGreg Sabino Mullane <[email protected]>
Fri, 22 Apr 2011 14:33:36 +0000 (10:33 -0400)
check_postgres.pl

index 33ede095048fa5034fdd4456c73d49e98583d9e9..41c99bc9d57edf59af224b9464f7b4b582a6b0b9 100755 (executable)
@@ -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] });