Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

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

+1-1
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)