Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit da45300

Browse files
committed
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
1 parent cbfbf29 commit da45300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_verify_checksums/pg_verify_checksums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ scan_directory(const char *basedir, const char *subdir)
167167
if (strncmp(de->d_name,
168168
PG_TEMP_FILES_DIR,
169169
strlen(PG_TEMP_FILES_DIR)) == 0)
170-
return;
170+
continue;
171171

172172
snprintf(fn, sizeof(fn), "%s/%s", path, de->d_name);
173173
if (lstat(fn, &st) < 0)

0 commit comments

Comments
 (0)