Incorrect initialization of sentPtr in walsender.c

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Incorrect initialization of sentPtr in walsender.c
Date: 2014-09-12 00:08:39
Message-ID: CAB7nPqS2ujOxFxNRRxm8vv-cSAEBGWQT-49jRpr5ArRxrrNVYA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

In walsender.c, sentPtr is initialized as follows:
static XLogRecPtr sentPtr = 0;
Isn't that incorrect and shouldn't we use InvalidXLogRecPtr instead?
Patch is attached.
Regards,
--
Michael

Attachment Content-Type Size
20140912_walsender_sentptr.patch text/x-diff 629 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2014-09-12 00:17:53 Re: Incorrect initialization of sentPtr in walsender.c
Previous Message Thomas Munro 2014-09-11 23:10:37 Re: SKIP LOCKED DATA (work in progress)