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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0fa0b48) | patch
Assert that buffer is pinned in LockBuffer().
2020年7月20日 23:03:38 +0000 (16:03 -0700)
2020年7月20日 23:03:38 +0000 (16:03 -0700)
commit 6ca7cd89a2d1998b16e8168dda62d43a9e0fdaff
Assert that buffer is pinned in LockBuffer().

Strengthen the LockBuffer() assertion that verifies BufferIsValid() by
making it verify BufferIsPinned() instead. Do the same in nearby
related functions.

There is probably not much chance that anybody will try to lock a buffer
that is not already pinned, but we might as well make sure of that.
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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