mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Yet more elimination of dead stores and useless initializations.
I'm not sure what tool Ranier was using, but the ones I contributed were found by using a newer version of scan-build than I tried before. Ranier Vilela and Tom Lane Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
This commit is contained in:
@@ -599,7 +599,6 @@ smgrDoPendingDeletes(bool isCommit)
|
||||
PendingRelDelete *prev;
|
||||
PendingRelDelete *next;
|
||||
int nrels = 0,
|
||||
i = 0,
|
||||
maxrels = 0;
|
||||
SMgrRelation *srels = NULL;
|
||||
|
||||
@@ -650,7 +649,7 @@ smgrDoPendingDeletes(bool isCommit)
|
||||
{
|
||||
smgrdounlinkall(srels, nrels, false);
|
||||
|
||||
for (i = 0; i < nrels; i++)
|
||||
for (int i = 0; i < nrels; i++)
|
||||
smgrclose(srels[i]);
|
||||
|
||||
pfree(srels);
|
||||
|
||||
Reference in New Issue
Block a user