OSDN Git Service

Remove belt-and-suspenders guards against buffer pin leaks.
authorRobert Haas <rhaas@postgresql.org>
Thu, 25 Nov 2010 05:06:46 +0000 (00:06 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 25 Nov 2010 05:06:46 +0000 (00:06 -0500)
commitc2281ac87cf4828b6b828dc8585a10aeb3a176e0
treea90d6e3c86f25ba6d6dbcbcf25ab006689ff0044
parent58dfb07b5d84c0088033e2d22fc44df812fa6eb5
Remove belt-and-suspenders guards against buffer pin leaks.

Forcibly releasing all leftover buffer pins should be unnecessary now
that we have a robust ResourceOwner mechanism, and it significantly
increases the cost of process shutdown.  Instead, in an assert-enabled
build, assert that no pins are held; in a non-assert-enabled build, do
nothing.
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c