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

Commit2c1031b

Browse files
committed
pg_receivexlog: Fix logic error
The code checking the WAL file name contained a logic error and wouldn'tactually catch some bad names.
1 parent4ca50e0 commit2c1031b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ FindStreamingStart(uint32 *tli)
145145
* characters.
146146
*/
147147
if (strlen(dirent->d_name)!=24||
148-
!strspn(dirent->d_name,"0123456789ABCDEF")==24)
148+
strspn(dirent->d_name,"0123456789ABCDEF")!=24)
149149
continue;
150150

151151
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp