Don't attempt to write recovery.conf when -R is not specified
Fixes segmentation fault during regular use. Fujii Masao
This commit is contained in:
parent
a89c46f9bc
commit
b5ed1376c6
@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
|
|||||||
if (copybuf != NULL)
|
if (copybuf != NULL)
|
||||||
PQfreemem(copybuf);
|
PQfreemem(copybuf);
|
||||||
|
|
||||||
if (basetablespace)
|
if (basetablespace && writerecoveryconf)
|
||||||
WriteRecoveryConf();
|
WriteRecoveryConf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user