git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4d330a6) | patch
bufmgr: Add some more error checking [infrastructure] around pinning
Wed, 5 Apr 2023 17:42:17 +0000 (10:42 -0700)
Wed, 5 Apr 2023 17:42:17 +0000 (10:42 -0700)
commit 819b69a81d307e2ad8e9752cf062ebb57813960d
bufmgr: Add some more error checking [infrastructure] around pinning

This adds a few more assertions against a buffer being local in places we
don't expect, and extracts the check for a buffer being pinned exactly once
from LockBufferForCleanup() into its own function. Later commits will use this
function.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: http://postgr.es/m/419312fd-9255-078c-c3e3-f0525f911d7f@iki.fi
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/include/storage/bufmgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /