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:
Magnus Hagander 2013-01-09 16:57:32 +01:00
parent a89c46f9bc
commit b5ed1376c6

View File

@ -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();
} }