Skip to content

Commit

Permalink
feat: 执行历史归档新增模式-只备份不删除 TencentBlueKing#3037
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Jun 5, 2024
1 parent e606b0d commit 807de1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ private void backupAndDelete() throws IOException {
}

protected boolean isBackupEnable(ArchiveDBProperties archiveDBProperties) {
ArchiveModeEnum archiveMode = ArchiveModeEnum.valOf(archiveDBProperties.getMode());
return archiveDBProperties.isEnabled()
&& ArchiveModeEnum.BACKUP_THEN_DELETE == ArchiveModeEnum.valOf(archiveDBProperties.getMode());
&& (ArchiveModeEnum.BACKUP_THEN_DELETE == archiveMode || ArchiveModeEnum.BACKUP_ONLY == archiveMode);
}

protected boolean isDeleteEnable(ArchiveDBProperties archiveDBProperties) {
Expand Down

0 comments on commit 807de1e

Please sign in to comment.