pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used
Дата
Msg-id E1VDFZk-0004QI-JU@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't crash when pg_xlog is empty and pg_basebackup -x is used

The backup will not work (without a logarchive, and that's the whole
point of -x) in this case, this patch just changes it to throw an
error instead of crashing when this happens.

Noticed and diagnosed by TAKATSUKA Haruka

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3979ff1fc6e9dd7847ff9bb24beb4d03ebe02cef

Modified Files
--------------
src/backend/replication/basebackup.c |    8 ++++++++
1 file changed, 8 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Don't crash when pg_xlog is empty and pg_basebackup -x is used