mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Refactor PinBufferForBlock() to remove checks about persistence.
There are checks in PinBufferForBlock() function to set persistence of the relation. This function is called for each block in the relation. Instead, set persistence of the relation before PinBufferForBlock(). Nazir Bilal Yavuz Discussion: https://postgr.es/m/CAN55FZ0JKL6vk1xQp6rfOXiNFV1u1H0tJDPPGHWoiO3ea2Wc=A@mail.gmail.com
This commit is contained in:
@@ -117,7 +117,7 @@ struct ReadBuffersOperation
|
||||
/* The following members should be set by the caller. */
|
||||
Relation rel; /* optional */
|
||||
struct SMgrRelationData *smgr;
|
||||
char smgr_persistence; /* optional if rel != NULL */
|
||||
char persistence;
|
||||
ForkNumber forknum;
|
||||
BufferAccessStrategy strategy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user