aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2021-06-28 18:34:56 -0700
committerNoah Misch <noah@leadboat.com>2021-06-28 18:34:56 -0700
commit421484f79c0b80209fa766eb00dbc2453a753273 (patch)
tree9ac302e015f93be23552b6444bbc73ba4dd9bca8 /src/include/access/xlog.h
parent85656bc3050f0846f53de95768b0f9f9df410560 (diff)
downloadpostgresql-421484f79c0b80209fa766eb00dbc2453a753273.tar.gz
postgresql-421484f79c0b80209fa766eb00dbc2453a753273.zip
Remove XLogFileInit() ability to unlink a pre-existing file.
Only initdb used it. initdb refuses to operate on a non-empty directory and generally does not cope with pre-existing files of other kinds. Hence, use the opportunity to simplify. Discussion: https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.com
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index a1756490bf8..d8b8f59c4bd 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -296,7 +296,7 @@ extern XLogRecPtr XLogInsertRecord(struct XLogRecData *rdata,
extern void XLogFlush(XLogRecPtr RecPtr);
extern bool XLogBackgroundFlush(void);
extern bool XLogNeedsFlush(XLogRecPtr RecPtr);
-extern int XLogFileInit(XLogSegNo segno, bool *use_existent);
+extern int XLogFileInit(XLogSegNo segno, bool *added);
extern int XLogFileOpen(XLogSegNo segno);
extern void CheckXLogRemoved(XLogSegNo segno, TimeLineID tli);