Skip to content

Commit 71d2c40

Browse files
committed
Fix CFS for new pg_upgrade copyFile and linkFile syntax
1 parent af68524 commit 71d2c40

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/bin/pg_upgrade/relfilenode.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,15 @@ static void transfer_compression_files(FileNameMap *map)
145145
{
146146
pg_log(PG_VERBOSE, "copying \"%s\" to \"%s\"\n", old_file, new_file);
147147

148-
msg = copyFile(old_file, new_file);
148+
copyFile(old_file, new_file, map->nspname, map->relname);
149149

150-
if (msg)
151-
pg_fatal("error while copying tablespace (\"%s\" to \"%s\"): %s\n",
152-
old_file, new_file, msg);
153150
}
154151
else
155152
{
156153
pg_log(PG_VERBOSE, "linking \"%s\" to \"%s\"\n", old_file, new_file);
157154

158-
msg = linkFile(old_file, new_file);
155+
linkFile(old_file, new_file, map->nspname, map->relname);
159156

160-
if (msg)
161-
pg_fatal("error while creating link for tablespace (\"%s\" to \"%s\"): %s\n",
162-
old_file, new_file, msg);
163157
}
164158

165159
transfer_relfile(map, ".cfm", false);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy