|
|
@ -1039,7 +1039,7 @@ main(int argc, char **argv) |
|
|
|
XLogFromFileName(fname, &private.timeline, &segno, WalSegSz); |
|
|
|
XLogFromFileName(fname, &private.timeline, &segno, WalSegSz); |
|
|
|
|
|
|
|
|
|
|
|
if (XLogRecPtrIsInvalid(private.startptr)) |
|
|
|
if (XLogRecPtrIsInvalid(private.startptr)) |
|
|
|
XLogSegNoOffsetToRecPtr(segno, 0, private.startptr, WalSegSz); |
|
|
|
XLogSegNoOffsetToRecPtr(segno, 0, WalSegSz, private.startptr); |
|
|
|
else if (!XLByteInSeg(private.startptr, segno, WalSegSz)) |
|
|
|
else if (!XLByteInSeg(private.startptr, segno, WalSegSz)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
fprintf(stderr, |
|
|
|
fprintf(stderr, |
|
|
@ -1053,7 +1053,7 @@ main(int argc, char **argv) |
|
|
|
|
|
|
|
|
|
|
|
/* no second file specified, set end position */ |
|
|
|
/* no second file specified, set end position */ |
|
|
|
if (!(optind + 1 < argc) && XLogRecPtrIsInvalid(private.endptr)) |
|
|
|
if (!(optind + 1 < argc) && XLogRecPtrIsInvalid(private.endptr)) |
|
|
|
XLogSegNoOffsetToRecPtr(segno + 1, 0, private.endptr, WalSegSz); |
|
|
|
XLogSegNoOffsetToRecPtr(segno + 1, 0, WalSegSz, private.endptr); |
|
|
|
|
|
|
|
|
|
|
|
/* parse ENDSEG if passed */ |
|
|
|
/* parse ENDSEG if passed */ |
|
|
|
if (optind + 1 < argc) |
|
|
|
if (optind + 1 < argc) |
|
|
@ -1076,8 +1076,8 @@ main(int argc, char **argv) |
|
|
|
argv[optind + 1], argv[optind]); |
|
|
|
argv[optind + 1], argv[optind]); |
|
|
|
|
|
|
|
|
|
|
|
if (XLogRecPtrIsInvalid(private.endptr)) |
|
|
|
if (XLogRecPtrIsInvalid(private.endptr)) |
|
|
|
XLogSegNoOffsetToRecPtr(endsegno + 1, 0, private.endptr, |
|
|
|
XLogSegNoOffsetToRecPtr(endsegno + 1, 0, WalSegSz, |
|
|
|
WalSegSz); |
|
|
|
private.endptr); |
|
|
|
|
|
|
|
|
|
|
|
/* set segno to endsegno for check of --end */ |
|
|
|
/* set segno to endsegno for check of --end */ |
|
|
|
segno = endsegno; |
|
|
|
segno = endsegno; |
|
|
|