Skip to content

Commit bd75d08

Browse files
author
Michael Paquier
committed
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.
1 parent 4d7bf53 commit bd75d08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pg_rman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ extern bool is_pg_running(void);
343343
} while (0)
344344

345345
#define MAXFNAMELEN 64
346-
#define XLogFileName(fname, tli, log, seg) \
346+
#define XLogFileNameLong(fname, tli, log, seg) \
347347
snprintf(fname, MAXFNAMELEN, "%08X%08X%08X", tli, log, seg)
348348

349349
#endif /* PG_RMAN_H */

restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ search_next_wal(const char *path, uint32 *needId, uint32 *needSeg, parray *timel
10041004
{
10051005
pgTimeLine *timeline = (pgTimeLine *) parray_get(timelines, i);
10061006

1007-
XLogFileName(xlogfname, timeline->tli, *needId, *needSeg);
1007+
XLogFileNameLong(xlogfname, timeline->tli, *needId, *needSeg);
10081008
join_path_components(xlogpath, path, xlogfname);
10091009

10101010
if (stat(xlogpath, &st) == 0)

0 commit comments

Comments
 (0)