1
0
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:
Noah Misch
2024-07-20 04:22:12 -07:00
parent e00c45f685
commit af07a827b9
3 changed files with 17 additions and 14 deletions

View File

@@ -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;