1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00

Rename XLogFileName to XLogFileNameLong

This is a lazy solution to avoid a conflict with the existing API in
xlog_internal.h, and should be corrected to use the one in core.
This commit is contained in:
Michael Paquier 2013-12-10 03:29:47 +09:00
parent 4d7bf5373c
commit bd75d08ef3
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ extern bool is_pg_running(void);
} while (0)
#define MAXFNAMELEN 64
#define XLogFileName(fname, tli, log, seg) \
#define XLogFileNameLong(fname, tli, log, seg) \
snprintf(fname, MAXFNAMELEN, "%08X%08X%08X", tli, log, seg)
#endif /* PG_RMAN_H */

View File

@ -1004,7 +1004,7 @@ search_next_wal(const char *path, uint32 *needId, uint32 *needSeg, parray *timel
{
pgTimeLine *timeline = (pgTimeLine *) parray_get(timelines, i);
XLogFileName(xlogfname, timeline->tli, *needId, *needSeg);
XLogFileNameLong(xlogfname, timeline->tli, *needId, *needSeg);
join_path_components(xlogpath, path, xlogfname);
if (stat(xlogpath, &st) == 0)