a problem about XLogReader callback system - Mailing list pgsql-hackers

From Wang, Shenhao
Subject a problem about XLogReader callback system
Date
Msg-id 2e9eed7d84fe4254bb6df1121d05caab@G08CNEXMBPEKD06.g08.fujitsu.local
Whole thread Raw
Responses Re: a problem about XLogReader callback system  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: Transactions involving multiple postgres foreign servers, take 2
Next
From: "Tang, Haiying"
Date:
Subject: remove useless returns