From aed185f1e8803eaa087a6a738b4fda61d68421dc Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Fri, 16 Oct 2026 16:07:00 +0800 Subject: [PATCH v1] Remove obsolete locking comment from AddBufferToRing() Commit 5e899859287 changed StrategyGetBuffer() to pin buffers using CAS without acquiring the buffer header lock, but left AddBufferToRing()'s locking comment unchanged. Remove the stale paragraph. Author: Chao Li --- src/backend/storage/buffer/freelist.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c index fdb5bad7910..e7073d2b074 100644 --- a/src/backend/storage/buffer/freelist.c +++ b/src/backend/storage/buffer/freelist.c @@ -694,9 +694,6 @@ GetBufferFromRing(BufferAccessStrategy strategy, uint64 *buf_state) /* * AddBufferToRing -- add a buffer to the buffer ring - * - * Caller must hold the buffer header spinlock on the buffer. Since this - * is called with the spinlock held, it had better be quite cheap. */ static void AddBufferToRing(BufferAccessStrategy strategy, BufferDesc *buf) -- 2.50.1 (Apple Git-155)