Commit 2c1031bd authored by Peter Eisentraut's avatar Peter Eisentraut

pg_receivexlog: Fix logic error

The code checking the WAL file name contained a logic error and wouldn't
actually catch some bad names.
parent 4ca50e07
...@@ -145,7 +145,7 @@ FindStreamingStart(uint32 *tli) ...@@ -145,7 +145,7 @@ FindStreamingStart(uint32 *tli)
* characters. * characters.
*/ */
if (strlen(dirent->d_name) != 24 || if (strlen(dirent->d_name) != 24 ||
!strspn(dirent->d_name, "0123456789ABCDEF") == 24) strspn(dirent->d_name, "0123456789ABCDEF") != 24)
continue; continue;
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment