gh-1150: speed up relay by avoiding unnecessary xdir_scan().
Move xdir_scan() outside recover_remaining_wals(). In recovery_follow_f, the function invoked in local hot standby mode or remote recovery, only invoke xdir_scan() if we're at the end of the current log (or have no log file at all).
Loading
Please register or sign in to comment