Re: Unnecessary global variable declared in xlog.c

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Amul Sul <sulamul@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-11-16T06:12:38Z
Lists: pgsql-hackers
On Tue, Nov 16, 2021 at 11:17:27AM +0530, Amul Sul wrote:
> The attached patch moves the "LastRec" variable declaration inside
> StartupXLOG() where it is supposed to be.

Yes, reading through the code, your suggestion makes sense.  I'll
double-check and apply if there are no objections.
--
Michael

Commits

  1. Remove global variable "LastRec" in xlog.c