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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy