File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -791,8 +791,15 @@ catalog_get_timelines(InstanceConfig *instance)
791791 /* check, if segments are consequent */
792792 XLogSegNo expected_segno = tlinfo -> end_segno + 1 ;
793793
794- /* some segments are missing. remember them in lost_segments to report */
795- if (segno != expected_segno )
794+ /*
795+ * Some segments are missing. remember them in lost_segments to report.
796+ * Normally we expect that segment numbers form an increasing sequence,
797+ * though it's legal to find two files with equal segno in case there
798+ * are both compressed and non-compessed versions. For example
799+ * 000000010000000000000002 and 000000010000000000000002.gz
800+ *
801+ */
802+ if (segno != expected_segno && segno != tlinfo -> end_segno )
796803 {
797804 xlogInterval * interval = palloc (sizeof (xlogInterval ));;
798805 interval -> begin_segno = expected_segno ;
You can’t perform that action at this time.
0 commit comments