a problem about XLogReader callback system

Поиск
Список
Период
Сортировка
От Wang, Shenhao
Тема a problem about XLogReader callback system
Дата
Msg-id 2e9eed7d84fe4254bb6df1121d05caab@G08CNEXMBPEKD06.g08.fujitsu.local
обсуждение исходный текст
Ответы Re: a problem about XLogReader callback system
Список pgsql-hackers
Hi, hackers

I have a problem about XLogReader callback system

In xlog.c, function StartupXLOG

    xlogreader =
        XLogReaderAllocate(wal_segment_size, NULL,
                           XL_ROUTINE(.page_read = &XLogPageRead,
                                      .segment_open = NULL,
                                      .segment_close = wal_segment_close),
                           &private);

XLogPageReader uses readFile to store the fd, and I can't find any location to set the value of seg.ws_file.
Is it necessary to set a segment_close callback?

Best regards
Wang





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

Предыдущее
От: "tsunakawa.takay@fujitsu.com"
Дата:
Сообщение: RE: Transactions involving multiple postgres foreign servers, take 2
Следующее
От: "Tang, Haiying"
Дата:
Сообщение: remove useless returns