summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-07-20 04:22:12 -0700
committerNoah Misch <noah@leadboat.com>2024-07-20 04:22:12 -0700
commitaf07a827b9c579be64f144f88e03bff3bb85582c (patch)
tree879cdff42f7fcfb2a6b38ed1befe523b269ae230 /src/include
parente00c45f6850f86c53b48478f60c15be905dc914d (diff)
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/bufmgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index bc26a4536ff..c8422571b7f 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -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;