aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 37c0eda510a..7b9b483ed97 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -2810,6 +2810,11 @@ XLogFileRead(uint32 log, uint32 seg, int emode, TimeLineID tli,
path, xlogfpath)));
/*
+ * Set path to point at the new file in pg_xlog.
+ */
+ strncpy(path, xlogfpath, MAXPGPATH);
+
+ /*
* If the existing segment was replaced, since walsenders might have
* it open, request them to reload a currently-open segment.
*/