mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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:
@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
|
||||
if (copybuf != NULL)
|
||||
PQfreemem(copybuf);
|
||||
|
||||
if (basetablespace)
|
||||
if (basetablespace && writerecoveryconf)
|
||||
WriteRecoveryConf();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user