Skip to content

Commit

Permalink
fix: 执行历史归档,备份冷数据不正确 #3349
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Dec 24, 2024
1 parent 173fd5d commit db508c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public BackupResult backupRecords(List<Long> jobInstanceIds) {
RecordResultSet<? extends TableRecord<?>> recordResultSet =
jobInstanceHotRecordDAO.executeQuery(jobInstanceIds,
archiveTablePropsStorage.getReadRowLimit(tableName));
long readStartTime = System.currentTimeMillis();
// 数据偏移量
int offset = 0;
long readStartTime = System.currentTimeMillis();
while (recordResultSet.next()) {
List<? extends TableRecord<?>> records = recordResultSet.getRecords();
long readEndTime = System.currentTimeMillis();
Expand All @@ -93,6 +93,8 @@ public BackupResult backupRecords(List<Long> jobInstanceIds) {
archiveTablePropsStorage.getBatchInsertRowSize(tableName));
backupRows += records.size();
}

readStartTime = System.currentTimeMillis();
offset += rowSize;
}

Expand Down

0 comments on commit db508c1

Please sign in to comment.