Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit137814a

Browse files
committed
do_retention_merge: fix removing from to_keep_list
1 parent610216c commit137814a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/delete.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,12 @@ do_retention_merge(InstanceState *instanceState, parray *backup_list,
552552

553553
/* Try to remove merged incremental backup from both keep and purge lists */
554554
parray_rm(to_purge_list,tmp_backup,pgBackupCompareId);
555-
parray_set(to_keep_list,i,NULL);
555+
for (i=0;i<parray_num(to_keep_list);i++)
556+
if (parray_get(to_keep_list,i)==tmp_backup)
557+
{
558+
parray_set(to_keep_list,i,NULL);
559+
break;
560+
}
556561
}
557562
if (!no_validate)
558563
pgBackupValidate(full_backup,NULL);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp