Only advance log file if record goes beyond EOF. #994