File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ pgBackupCreateDir(pgBackup *backup)
688
688
parray *
689
689
catalog_get_timelines (InstanceConfig * instance )
690
690
{
691
- int i ,j ;
691
+ int i ,j , k ;
692
692
parray * xlog_files_list = parray_new ();
693
693
parray * timelineinfos ;
694
694
parray * backups ;
@@ -1210,9 +1210,9 @@ catalog_get_timelines(InstanceConfig *instance)
1210
1210
1211
1211
GetXLogSegNo (tlinfo -> anchor_lsn , anchor_segno , instance -> xlog_seg_size );
1212
1212
1213
- for (i = 0 ; i < parray_num (tlinfo -> xlog_filelist ); i ++ )
1213
+ for (j = 0 ; j < parray_num (tlinfo -> xlog_filelist ); j ++ )
1214
1214
{
1215
- xlogFile * wal_file = (xlogFile * ) parray_get (tlinfo -> xlog_filelist , i );
1215
+ xlogFile * wal_file = (xlogFile * ) parray_get (tlinfo -> xlog_filelist , j );
1216
1216
1217
1217
if (wal_file -> segno >= anchor_segno )
1218
1218
{
@@ -1225,9 +1225,9 @@ catalog_get_timelines(InstanceConfig *instance)
1225
1225
continue ;
1226
1226
1227
1227
/* Protect segments belonging to one of the keep invervals */
1228
- for (j = 0 ; j < parray_num (tlinfo -> keep_segments ); j ++ )
1228
+ for (k = 0 ; k < parray_num (tlinfo -> keep_segments ); k ++ )
1229
1229
{
1230
- xlogInterval * keep_segments = (xlogInterval * ) parray_get (tlinfo -> keep_segments , j );
1230
+ xlogInterval * keep_segments = (xlogInterval * ) parray_get (tlinfo -> keep_segments , k );
1231
1231
1232
1232
if ((wal_file -> segno >= keep_segments -> begin_segno ) &&
1233
1233
wal_file -> segno <= keep_segments -> end_segno )
You can’t perform that action at this time.
0 commit comments