a litter question about mdunlinkfiletag function

Поиск
Список
Период
Сортировка
От px shi
Тема a litter question about mdunlinkfiletag function
Дата
Msg-id CAAccyYKeYNUCRR8JQ_wvWLF1Fu9CM5FMXQqtW96gFLH43phRHg@mail.gmail.com
обсуждение исходный текст
Ответы Re: a litter question about mdunlinkfiletag function
Список pgsql-hackers

Hi, hackers

When calculating the path, forknum is hardcoded as MAIN_FORKNUM:

/* Compute the path. */
p = relpathperm(ftag->rnode, MAIN_FORKNUM);


But since the ftag structure already contains forknum:

typedef struct FileTag
{
int16 handler; /* SyncRequestHandler value, saving space */
int16 forknum; /* ForkNumber, saving space */
RelFileNode rnode;
uint32 segno;
} FileTag;


Wouldn’t it be more flexible to use the value from the ftag structure directly?


Best regards, 

Pixian Shi

В списке pgsql-hackers по дате отправления: