fix oversight converting buf_id to Buffer - Mailing list pgsql-hackers

From Qingqing Zhou
Subject fix oversight converting buf_id to Buffer
Date
Msg-id CAJjS0u2ai9ooUisKtkV8cuVUtEkMTsbK8c7juNAjv8K11zeCQg@mail.gmail.com
Whole thread Raw
Responses Re: fix oversight converting buf_id to Buffer  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Attached patch fixes oversights converting buf_id to Buffer in
PrintBufferDescs() and InvalidateBuffer(). Especially for the latter,
the reason we haven't seen any reports of the issue might be that it
needs certain concurrent conditions to be true.

Along the line, it also changes all direct maths against buf_id to use
BufferDescriptorGetBuffer() instead.

Regards,
Qingqing

Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: checkpointer continuous flushing
Next
From: Stephen Frost
Date:
Subject: Re: CREATE POLICY and RETURNING