Since this patch takes out a lock to read the BufferDesc state, I also need to release the lock, which I've added to this patch.
On Fri, Jan 17, 2025 at 2:11 PM Jacob Brazeal <jacob.braz...@gmail.com> wrote: > Hi, > > In bufmgr.c we have the debugging functions PrintBufferDescs > and PrintPinnedBufs, which are typically hidden behind the flag > #ifdef NOT_USED. These functions reference the old buf->refcount and > buf->flags fields, and so they no longer compile. I attached a patch to > use BUF_STATE_GET_REFCOUNT instead and removed the reference to buf->flags. > > Regards, > Jacob Brazeal > >
v2-buf-helper-compile-err.patch
Description: Binary data