aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-03-11 10:58:02 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-03-11 11:23:04 +0100
commitaaa3aeddee51dd0058d38469907865052706a590 (patch)
tree3841e6a44c6787e8bea1b5ec3060c473d79e0d20 /src/backend/access/transam/xlog.c
parentd114cc538715e14d29d6de8b6ea1a1d5d3e0edb4 (diff)
downloadpostgresql-aaa3aeddee51dd0058d38469907865052706a590.tar.gz
postgresql-aaa3aeddee51dd0058d38469907865052706a590.zip
Remove HAVE_WORKING_LINK
Previously, hard links were not used on Windows and Cygwin, but they support them just fine in currently supported OS versions, so we can use them there as well. Since all supported platforms now support hard links, we can remove the alternative code paths. Rename durable_link_or_rename() to durable_rename_excl() to make the purpose more clear without referencing the implementation details. Discussion: https://www.postgresql.org/message-id/flat/72fff73f-dc9c-4ef4-83e8-d2e60c98df48%402ndquadrant.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index bffa94f36e4..614a25242b5 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -3591,11 +3591,11 @@ InstallXLogFileSegment(XLogSegNo *segno, char *tmppath,
* Perform the rename using link if available, paranoidly trying to avoid
* overwriting an existing file (there shouldn't be one).
*/
- if (durable_link_or_rename(tmppath, path, LOG) != 0)
+ if (durable_rename_excl(tmppath, path, LOG) != 0)
{
if (use_lock)
LWLockRelease(ControlFileLock);
- /* durable_link_or_rename already emitted log message */
+ /* durable_rename_excl already emitted log message */
return false;
}