@@ -260,7 +260,7 @@ doExtractPageMap(void *arg)
260
260
261
261
XLByteToSeg (xlogreader -> EndRecPtr , nextSegNo );
262
262
} while (nextSegNo <= extract_arg -> endSegNo &&
263
- xlogreader -> EndRecPtr < extract_arg -> endpoint );
263
+ xlogreader -> ReadRecPtr < extract_arg -> endpoint );
264
264
265
265
CleanupXLogPageRead (xlogreader );
266
266
XLogReaderFree (xlogreader );
@@ -274,15 +274,12 @@ doExtractPageMap(void *arg)
274
274
* Read WAL from the archive directory, from 'startpoint' to 'endpoint' on the
275
275
* given timeline. Collect data blocks touched by the WAL records into a page map.
276
276
*
277
- * If **prev_segno** is true then read all segments up to **endpoint** segment
278
- * minus one. Else read all segments up to **endpoint** segment.
279
- *
280
277
* Pagemap extracting is processed using threads. Eeach thread reads single WAL
281
278
* file.
282
279
*/
283
280
void
284
281
extractPageMap (const char * archivedir , XLogRecPtr startpoint , TimeLineID tli ,
285
- XLogRecPtr endpoint , bool prev_seg , parray * files )
282
+ XLogRecPtr endpoint , parray * files )
286
283
{
287
284
int i ;
288
285
int threads_need = 0 ;
@@ -303,8 +300,6 @@ extractPageMap(const char *archivedir, XLogRecPtr startpoint, TimeLineID tli,
303
300
(uint32 ) (endpoint >> 32 ), (uint32 ) (endpoint ));
304
301
305
302
XLByteToSeg (endpoint , endSegNo );
306
- if (prev_seg )
307
- endSegNo -- ;
308
303
309
304
nextSegNoToRead = 0 ;
310
305
time (& start_time );
0 commit comments