Small typo in timeline.h regarding the meaning of infinity for timeline history entry - Mailing list pgsql-hackers

From Michael Paquier
Subject Small typo in timeline.h regarding the meaning of infinity for timeline history entry
Date
Msg-id CAB7nPqSSzK0Pgqxg6D+LzQEmaARVktYTBZq9QCQ5+hDuKRAFbQ@mail.gmail.com
Whole thread Raw
Responses Re: Small typo in timeline.h regarding the meaning of infinity for timeline history entry  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Hi all,

timeline.h quotes that the end point of timeline history entry means
infinity when its value is 0. But that's not completely true, I think
that what is meant here is InvalidXLogRecPtr:
 {
        TimeLineID      tli;
        XLogRecPtr      begin;                  /* inclusive */
-       XLogRecPtr      end;                    /* exclusive, 0 means
infinity */
+       XLogRecPtr      end;                    /* exclusive,
InvalidXLogRecPtr means
+                                                                * infinity */
 } TimeLineHistoryEntry;

And the code leads into this direction as well.
Regards,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Use pg_rewind when target timeline was switched
Next
From: Fabien COELHO
Date:
Subject: Re: checkpointer continuous flushing