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 6, 2024
1 parent c5b0bc6 commit 7e69bc4
Showing 1 changed file with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,20 @@ private void backupAndDelete() throws IOException {
deleteRows,
archiveCost
);
setArchiveSummary(minNeedArchiveId, maxNeedArchiveId, readRows, backupRows, deleteRows,
stop, archiveCost, success, backupReadRecordCost, backupWriteRecordCost, deleteCost);
setArchiveSummary(
minNeedArchiveId,
maxNeedArchiveId,
readRows,
backupRows,
deleteRows,
backupEnabled ? stop : 0,
deleteEnabled ? stop : 0,
archiveCost,
success,
backupReadRecordCost,
backupWriteRecordCost,
deleteCost
);
}
}

Expand Down Expand Up @@ -400,7 +412,8 @@ private void setArchiveSummary(Long minNeedArchiveId,
long readRows,
long backupRows,
long deleteRows,
long stop,
Long lastBackupId,
Long lastDeleteId,
long archiveCost,
boolean success,
long backupReadCost,
Expand All @@ -411,8 +424,8 @@ private void setArchiveSummary(Long minNeedArchiveId,
archiveSummary.setNeedArchiveRecordSize(readRows);
archiveSummary.setBackupRecordSize(backupRows);
archiveSummary.setDeleteRecordSize(deleteRows);
archiveSummary.setLastBackupId(stop);
archiveSummary.setLastDeletedId(stop);
archiveSummary.setLastBackupId(lastBackupId);
archiveSummary.setLastDeletedId(lastDeleteId);
archiveSummary.setArchiveCost(archiveCost);
archiveSummary.setSuccess(success);
archiveSummary.setBackupReadCost(backupReadCost);
Expand Down

0 comments on commit 7e69bc4

Please sign in to comment.