Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock should
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/ginxlog.c | modified | +3 −1 |
| src/backend/access/gist/gistxlog.c | modified | +3 −2 |
| src/backend/access/heap/heapam.c | modified | +6 −1 |
| src/backend/access/nbtree/nbtxlog.c | modified | +3 −1 |
| src/backend/access/transam/clog.c | modified | +4 −1 |
| src/backend/access/transam/multixact.c | modified | +4 −1 |
| src/backend/access/transam/xact.c | modified | +4 −1 |
| src/backend/access/transam/xlog.c | modified | +17 −6 |
| src/backend/access/transam/xlogutils.c | modified | +29 −16 |
| src/backend/catalog/storage.c | modified | +4 −1 |
| src/backend/commands/dbcommands.c | modified | +4 −1 |
| src/backend/commands/sequence.c | modified | +4 −1 |
| src/backend/commands/tablespace.c | modified | +4 −1 |
| src/backend/storage/freespace/freespace.c | modified | +3 −1 |
| src/include/access/xlog.h | modified | +3 −1 |