Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 460fada

Browse files
author
Commitfest Bot
committed
[CF 5149] v3 - Remove duplicated smgrclose call
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5149 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CABBtG=f3e+jGFZsTJuMUW=Bvt0ToJQ-4tfYU9sASmJ-7V6Bc-w@mail.gmail.com Author(s): Steven Niu
2 parents 0dca5d6 + 0901b7c commit 460fada

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/backend/catalog/storage.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,6 @@ smgrDoPendingDeletes(bool isCommit)
727727
{
728728
smgrdounlinkall(srels, nrels, false);
729729

730-
for (int i = 0; i < nrels; i++)
731-
smgrclose(srels[i]);
732-
733730
pfree(srels);
734731
}
735732
}

src/backend/storage/smgr/md.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,8 +1606,6 @@ DropRelationFiles(RelFileLocator *delrels, int ndelrels, bool isRedo)
16061606

16071607
smgrdounlinkall(srels, ndelrels, isRedo);
16081608

1609-
for (i = 0; i < ndelrels; i++)
1610-
smgrclose(srels[i]);
16111609
pfree(srels);
16121610
}
16131611

src/backend/utils/cache/relcache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3802,7 +3802,6 @@ RelationSetNewRelfilenumber(Relation relation, char persistence)
38023802
*/
38033803
srel = smgropen(relation->rd_locator, relation->rd_backend);
38043804
smgrdounlinkall(&srel, 1, false);
3805-
smgrclose(srel);
38063805
}
38073806
else
38083807
{

0 commit comments

Comments
 (0)