]> granicus.if.org Git - postgresql/commit
Fix base backup streaming xlog from standby
authorMagnus Hagander <magnus@hagander.net>
Fri, 25 May 2012 09:36:22 +0000 (11:36 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 25 May 2012 09:36:22 +0000 (11:36 +0200)
commit31d965819bdaa971ae007a67611e78ec1d185f14
treebf20d11e365f58d82aaed163c511643d6daed4bd
parentd226e236c6ccdd27f1fd42aaab070762d1b70275
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
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/receivelog.h