8000 pg_receivexlog: Fix logic error · postgres/postgres@2c1031b · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 2c1031b

Browse files
committed
pg_receivexlog: Fix logic error
The code checking the WAL file name contained a logic error and wouldn't actually catch some bad names.
1 parent 4ca50e0 commit 2c1031b

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)
0