mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
remove redundant initializations
Reported-by: Ranier Vilela Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com Author: Ranier Vilela Backpatch-through: master
This commit is contained in:
@@ -734,9 +734,11 @@ mdwrite(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
|
||||
BlockNumber
|
||||
mdnblocks(SMgrRelation reln, ForkNumber forknum)
|
||||
{
|
||||
MdfdVec *v = mdopenfork(reln, forknum, EXTENSION_FAIL);
|
||||
MdfdVec *v;
|
||||
BlockNumber nblocks;
|
||||
BlockNumber segno = 0;
|
||||
BlockNumber segno;
|
||||
|
||||
mdopenfork(reln, forknum, EXTENSION_FAIL);
|
||||
|
||||
/* mdopen has opened the first segment */
|
||||
Assert(reln->md_num_open_segs[forknum] > 0);
|
||||
|
Reference in New Issue
Block a user