mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Revert "Use "transient" files for blind writes"
This reverts commit 54d9e8c6c1
, which
caused a failure on the buildfarm. Not a good thing to have just before
a beta release.
This commit is contained in:
@@ -165,33 +165,16 @@ smgropen(RelFileNode rnode, BackendId backend)
|
||||
reln->smgr_targblock = InvalidBlockNumber;
|
||||
reln->smgr_fsm_nblocks = InvalidBlockNumber;
|
||||
reln->smgr_vm_nblocks = InvalidBlockNumber;
|
||||
reln->smgr_transient = false;
|
||||
reln->smgr_which = 0; /* we only have md.c at present */
|
||||
|
||||
/* mark it not open */
|
||||
for (forknum = 0; forknum <= MAX_FORKNUM; forknum++)
|
||||
reln->md_fd[forknum] = NULL;
|
||||
}
|
||||
else
|
||||
/* if it was transient before, it no longer is */
|
||||
reln->smgr_transient = false;
|
||||
|
||||
return reln;
|
||||
}
|
||||
|
||||
/*
|
||||
* smgrsettransient() -- mark an SMgrRelation object as transaction-bound
|
||||
*
|
||||
* The main effect of this is that all opened files are marked to be
|
||||
* kernel-level closed (but not necessarily VFD-closed) when the current
|
||||
* transaction ends.
|
||||
*/
|
||||
void
|
||||
smgrsettransient(SMgrRelation reln)
|
||||
{
|
||||
reln->smgr_transient = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* smgrsetowner() -- Establish a long-lived reference to an SMgrRelation object
|
||||
*
|
||||
|
Reference in New Issue
Block a user