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:
parent
4d7bf5373c
commit
bd75d08ef3
@ -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 */
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user