Skip to content

Commit 4a36a1f

Browse files
authored
Merge pull request #26 from postgrespro/PBCKP-334-segno_any_fork
[PBCKP-334] Unified segno code for any fork
2 parents 94c11ce + b2f2fdf commit 4a36a1f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ptrack.c

+4-8
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,11 @@ ptrack_gather_filelist(List **filelist, char *path, Oid spcOid, Oid dbOid)
344344
if (!parse_filename_for_nontemp_relation(de->d_name, &oidchars, &pfl->forknum))
345345
continue;
346346

347-
/* Parse segno for main fork */
348-
if (pfl->forknum == MAIN_FORKNUM)
349-
{
350-
segpath = strstr(de->d_name, ".");
351-
pfl->segno = segpath != NULL ? atoi(segpath + 1) : 0;
352-
}
353-
else
354-
pfl->segno = 0;
347+
/* Parse segno */
348+
segpath = strstr(de->d_name, ".");
349+
pfl->segno = segpath != NULL ? atoi(segpath + 1) : 0;
355350

351+
/* Fill the pfl in */
356352
memcpy(oidbuf, de->d_name, oidchars);
357353
oidbuf[oidchars] = '\0';
358354
nodeRel(pfl->relnode) = atooid(oidbuf);

0 commit comments

Comments
 (0)