aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-03-14 14:15:13 +0900
committerMichael Paquier <michael@paquier.xyz>2019-03-14 14:15:13 +0900
commitda453004869d3e818d8529087b680ebbf8842f51 (patch)
tree124e4f1dcd28023920dd9da7f09dd9448e258b80
parentcbfbf2930e9ca534728ad1aef0f96a052a87dd1d (diff)
downloadpostgresql-da453004869d3e818d8529087b680ebbf8842f51.tar.gz
postgresql-da453004869d3e818d8529087b680ebbf8842f51.zip
Fix thinko when bumping on temporary directories in pg_verify_checksums
This fixes an oversight from 5c99513. This has no actual consequence as PG_TEMP_FILE_PREFIX and PG_TEMP_FILES_DIR have the same value so when bumping on a temporary path the directory scan was still moving on to the next entry instead of skipping the rest of the scan, but let's keep the logic correct. Author: Michael Banck Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/20190314.115417.58230569.horiguchi.kyotaro@lab.ntt.co.jp Backpatch-through: 11
-rw-r--r--src/bin/pg_verify_checksums/pg_verify_checksums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_verify_checksums/pg_verify_checksums.c b/src/bin/pg_verify_checksums/pg_verify_checksums.c
index 6c2d0cd2ab5..a992886a323 100644
--- a/src/bin/pg_verify_checksums/pg_verify_checksums.c
+++ b/src/bin/pg_verify_checksums/pg_verify_checksums.c
@@ -167,7 +167,7 @@ scan_directory(const char *basedir, const char *subdir)
if (strncmp(de->d_name,
PG_TEMP_FILES_DIR,
strlen(PG_TEMP_FILES_DIR)) == 0)
- return;
+ continue;
snprintf(fn, sizeof(fn), "%s/%s", path, de->d_name);
if (lstat(fn, &st) < 0)