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

Commit3fdc1d2

Browse files
committed
C comment: mention why no setting lasterrno in dir_existsfile()
Reported-by: Wei SunDiscussion:https://postgr.es/m/tencent_1276C08F98579CC19D8A4488C848A8411806@qq.comBackpatch-through: master
1 parentb706172 commit3fdc1d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/bin/pg_basebackup/walmethods.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ dir_existsfile(WalWriteMethod *wwmethod, const char *pathname)
594594

595595
fd=open(tmppath,O_RDONLY |PG_BINARY,0);
596596
if (fd<0)
597+
598+
/*
599+
* Skip setting dir_data->lasterrno here because we are only checking
600+
* for existence.
601+
*/
597602
return false;
598603
close(fd);
599604
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp