]> granicus.if.org Git - postgresql/commit
Don't abort pg_basebackup when receiving empty WAL block
authorMagnus Hagander <magnus@hagander.net>
Mon, 11 Nov 2013 13:34:06 +0000 (14:34 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 11 Nov 2013 13:34:06 +0000 (14:34 +0100)
commitc6ec8793aa59d1842082e14b4b4aae7d4bd883fd
treed2f98ae7caed52df21d65e28390190c81516e696
parent9a45a655977266c5367d658bab8384d8d4c77127
Don't abort pg_basebackup when receiving empty WAL block

This can happen exactly at the switch of a logical WAL file
(segment number ending in FE), when running pg_basebackup connected
to a standby server, and would cause the backup to abort with
the error message "streaming header too small".

There is nothing wrong with an empty message, it's just unnecessary,
and the rest of the code can handle the case of an empty message,
so this patch just removes the error condition when the size is
exactly zero.
src/bin/pg_basebackup/receivelog.c