1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

use IsXLogFileName() when parsing xlog filenames

This commit is contained in:
Grigory Smolkin 2020-01-02 20:51:50 +03:00
parent 3129369112
commit 6ad38c62ce

View File

@ -717,7 +717,7 @@ catalog_get_timelines(InstanceConfig *instance)
xlogFile *wal_file = NULL;
/* regular WAL file */
if (strspn(file->name, "0123456789ABCDEF") == XLOG_FNAME_LEN)
if (IsXLogFileName(file->name))
{
int result = 0;
uint32 log, seg;