pgsql: Fix base backup streaming xlog from standby
| От | Magnus Hagander |
|---|---|
| Тема | pgsql: Fix base backup streaming xlog from standby |
| Дата | |
| Msg-id | E1SXqxS-0007nL-60@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Fix base backup streaming xlog from standby When backing up from a standby server, the backup process will not automatically switch xlog segment. So we must accept a partially transferred xlog file in this case, but rename it into position anyway. In passing, merge the two callbacks for segment end and stop stream into a single callback, since their implementations were close to identical, and rename this callback to reflect that it stops streaming rather than continues it. Patch by Magnus Hagander, review by Fujii Masao Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/31d965819bdaa971ae007a67611e78ec1d185f14 Modified Files -------------- src/bin/pg_basebackup/pg_basebackup.c | 9 +++---- src/bin/pg_basebackup/pg_receivexlog.c | 19 ++++------------- src/bin/pg_basebackup/receivelog.c | 33 ++++++++++++++++++------------- src/bin/pg_basebackup/receivelog.h | 18 +++++----------- 4 files changed, 34 insertions(+), 45 deletions(-)
В списке pgsql-committers по дате отправления: