projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89c46f
)
Don't attempt to write recovery.conf when -R is not specified
author
Magnus Hagander
<
[email protected]
>
Wed, 9 Jan 2013 15:57:32 +0000
(16:57 +0100)
committer
Magnus Hagander
<
[email protected]
>
Wed, 9 Jan 2013 15:57:32 +0000
(16:57 +0100)
Fixes segmentation fault during regular use.
Fujii Masao
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_basebackup.c
b/src/bin/pg_basebackup/pg_basebackup.c
index 661cf246a0d52dcd0bd9ffb42912d1b3716c629b..ffc882616fc930a5388cc3ce184ea561bcd92101 100644
(file)
--- a/
src/bin/pg_basebackup/pg_basebackup.c
+++ b/
src/bin/pg_basebackup/pg_basebackup.c
@@
-1084,7
+1084,7
@@
ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
if (copybuf != NULL)
PQfreemem(copybuf);
- if (basetablespace)
+ if (basetablespace
&& writerecoveryconf
)
WriteRecoveryConf();
}