Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6eebfdc

Browse files
committed
Fix thinko when bumping on temporary directories in pg_checksums
This fixes an oversight from5c99513. This has no actual consequence asPG_TEMP_FILE_PREFIX and PG_TEMP_FILES_DIR have the same value so whenbumping on a temporary path the directory scan was still moving on tothe next entry instead of skipping the rest of the scan, but let's keepthe logic correct.Author: Michael BanckReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/20190314.115417.58230569.horiguchi.kyotaro@lab.ntt.co.jpBackpatch-through: 11
1 parent401b87a commit6eebfdc

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)

[8]ページ先頭

©2009-2025 Movatter.jp