Skip to content

Commit 881fa86

Browse files
committed
Code cleanup
for commit c96de2c Author: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://www.postgresql.org/message-id/20230111185434.GA1912982@nathanxps13
1 parent 8607630 commit 881fa86

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/backend/access/transam/xlogarchive.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ RestoreArchivedFile(char *path, const char *xlogfname,
154154
xlogRestoreCmd = BuildRestoreCommand(recoveryRestoreCommand,
155155
xlogpath, xlogfname,
156156
lastRestartPointFname);
157-
if (xlogRestoreCmd == NULL)
158-
elog(ERROR, "could not build restore command \"%s\"",
159-
recoveryRestoreCommand);
160157

161158
ereport(DEBUG3,
162159
(errmsg_internal("executing restore command \"%s\"",

src/common/archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* The result is a palloc'd string for the restore command built. The
3434
* caller is responsible for freeing it. If any of the required arguments
3535
* is NULL and that the corresponding alias is found in the command given
36-
* by the caller, then NULL is returned.
36+
* by the caller, then an error is thrown.
3737
*/
3838
char *
3939
BuildRestoreCommand(const char *restoreCommand,

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