Refactor pg_receivexlog main loop code, for readability.

Fujii Masao <fujii@postgresql.org>

Commit: 74cbe966fe2d76de1d607d933c98c144dab58769
Author: Fujii Masao <fujii@postgresql.org>
Date: 2014-07-04T03:00:48Z
Releases: 9.5.0
Refactor pg_receivexlog main loop code, for readability.

Previously the source codes for receiving the data and for
polling the socket were included in pg_receivexlog main loop.
This commit splits out them as separate functions. This is
useful for improving the readability of main loop code and
making the future pg_receivexlog-related patch simpler.

Files

PathChange+/−
src/bin/pg_basebackup/receivelog.c modified +142 −67