mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Remove "smgr_persistence == 0" dead code.
Reaching that code would have required multiple processes performing
relation extension during recovery, which does not happen. That caller
has the persistence available, so pass it. This was dead code as soon
as commit 210622c60e added it.
Discussion: https://postgr.es/m/CAN55FZ0JKL6vk1xQp6rfOXiNFV1u1H0tJDPPGHWoiO3ea2Wc=A@mail.gmail.com
This commit is contained in:
@@ -114,14 +114,10 @@ typedef struct BufferManagerRelation
|
||||
|
||||
struct ReadBuffersOperation
|
||||
{
|
||||
/*
|
||||
* The following members should be set by the caller. If only smgr is
|
||||
* provided without rel, then smgr_persistence can be set to override the
|
||||
* default assumption of RELPERSISTENCE_PERMANENT.
|
||||
*/
|
||||
Relation rel;
|
||||
/* The following members should be set by the caller. */
|
||||
Relation rel; /* optional */
|
||||
struct SMgrRelationData *smgr;
|
||||
char smgr_persistence;
|
||||
char smgr_persistence; /* optional if rel != NULL */
|
||||
ForkNumber forknum;
|
||||
BufferAccessStrategy strategy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user