Fix a typo in xlogreader.c - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Fix a typo in xlogreader.c
Date
Msg-id CAD21AoAzz6qipFJBbGEaHmyWxvvNDp8httbwLR9tUQWaTjUs2Q@mail.gmail.com
Whole thread Raw
Responses Re: Fix a typo in xlogreader.c  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Hi,

The function comment of RestoreBlockImage() seems not correct since it
returns a boolean, not the buffer number.

 /*
  * Restore a full-page image from a backup block attached to an XLOG record.
  *
  * Returns the buffer number containing the page.
  */
 bool
 RestoreBlockImage(XLogReaderState *record, uint8 block_id, char *page)

Attached the patch that fixes it.

Regards,

-- 
Masahiko Sawada
EnterpriseDB:  https://www.enterprisedb.com/

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: O(n^2) system calls in RemoveOldXlogFiles()
Next
From: Tomas Vondra
Date:
Subject: Re: list of extended statistics on psql