Content-Length: 257394 | pFad | http://github.com/postgrespro/postgres/commit/2c1031bd8602f749a81672015811f365a129acff

DE pg_receivexlog: Fix logic error · postgrespro/postgres@2c1031b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2c1031bd8602f749a81672015811f365a129acff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy