projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d33aeef
)
Fix use of wrong variable in pg_receivewal's get_destination_dir().
author
Andres Freund
<andres@anarazel.de>
Sun, 27 Feb 2022 00:43:54 +0000
(16:43 -0800)
committer
Andres Freund
<andres@anarazel.de>
Sun, 27 Feb 2022 00:43:54 +0000
(16:43 -0800)
The global variable wrongly used is always the one passed to
get_destination_dir(), so there currently are no negative consequences.
Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CALj2ACUT0C2LQwhyLXTQdj8T9SxZa5j7cmu-UOz0cZ8_D5edjg@mail.gmail.com
src/bin/pg_basebackup/pg_receivewal.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_receivewal.c
b/src/bin/pg_basebackup/pg_receivewal.c
index ccb215c398cc49b6929d50d20f3dc5ca9dd7ec5b..ce661a9ce455842faeb0f8fbdff0ab7c32f02183 100644
(file)
--- a/
src/bin/pg_basebackup/pg_receivewal.c
+++ b/
src/bin/pg_basebackup/pg_receivewal.c
@@
-240,7
+240,7
@@
get_destination_dir(char *dest_folder)
dir = opendir(dest_folder);
if (dir == NULL)
{
- pg_log_error("could not open directory \"%s\": %m",
basedi
r);
+ pg_log_error("could not open directory \"%s\": %m",
dest_folde
r);
exit(1);
}