Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock should
commitd76bc89e3c5af4282568626bb49e12939aa8b60f
authorheikki <heikki>
Tue, 20 Jan 2009 18:59:37 +0000 (20 18:59 +0000)
committerheikki <heikki>
Tue, 20 Jan 2009 18:59:37 +0000 (20 18:59 +0000)
tree508715c2a364842d222c579f950ea9f459da76f2
parentd44a98f991fbe7d9619a92ee0c474f4dfe6e7e51
Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock should
be used instead of the normal exclusive lock, and make WAL redo functions
responsible for calling RestoreBkpBlocks(). They know better what kind of a
lock they need.

At the moment, this just moves things around with no functional change, but
makes the hot standby patch that's under review cleaner.
15 files changed:
src/backend/access/gin/ginxlog.c
src/backend/access/gist/gistxlog.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/transam/clog.c
src/backend/access/transam/multixact.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/catalog/storage.c
src/backend/commands/dbcommands.c
src/backend/commands/sequence.c
src/backend/commands/tablespace.c
src/backend/storage/freespace/freespace.c
src/include/access/xlog.h