mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08: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:
parent
a89c46f9bc
commit
b5ed1376c6
@ -1084,7 +1084,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
|
||||
if (copybuf != NULL)
|
||||
PQfreemem(copybuf);
|
||||
|
||||
if (basetablespace)
|
||||
if (basetablespace && writerecoveryconf)
|
||||
WriteRecoveryConf();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user