Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 219c024

Browse files
committed
Repair out-of-date information in src/backend/storage/buffer/README.
In commit d526575, we changed things so that buffer usage counts are incremented when the buffer is pinned, rather than when it is unpinned, but the README file didn't get the memo. Report by Amit Kapila.
1 parent b94ce6e commit 219c024

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/buffer

1 file changed

+2
-2
lines changed

src/backend/storage/buffer/README

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ need to take system-wide locks during common operations. It works like
169169
this:
170170

171171
Each buffer header contains a usage counter, which is incremented (up to a
172-
small limit value) whenever the buffer is unpinned. (This requires only the
173-
buffer header spinlock, which would have to be taken anyway to decrement the
172+
small limit value) whenever the buffer is pinned. (This requires only the
173+
buffer header spinlock, which would have to be taken anyway to increment the
174174
buffer reference count, so it's nearly free.)
175175

176176
The "clock hand" is a buffer index, NextVictimBuffer, that moves circularly

0 commit comments

Comments
 (0)