Content-Length: 259623 | pFad | http://github.com/postgrespro/postgres_cluster/commit/6eebfdc38b173edcd179f422cf7083383edb24bc

B1 Fix thinko when bumping on temporary directories in pg_checksums · postgrespro/postgres_cluster@6eebfdc · GitHub
Skip to content

Commit 6eebfdc

Browse files
committed
Fix thinko when bumping on temporary directories in pg_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 401b87a commit 6eebfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_checksums/pg_checksums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ scan_directory(const char *basedir, const char *subdir)
171171
if (strncmp(de->d_name,
172172
PG_TEMP_FILES_DIR,
173173
strlen(PG_TEMP_FILES_DIR)) == 0)
174-
return;
174+
continue;
175175

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/6eebfdc38b173edcd179f422cf7083383edb24bc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy