Skip to content

Commit

Permalink
fix(backend): 回滚添加备份记录问题 #6417
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 16327
  • Loading branch information
ygcyao authored and zhangzhw8 committed Aug 23, 2024
1 parent 6c6e464 commit 4556c69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def format_ticket_data(self):
current_time = datetime.now(timezone.utc)
# 获取最近的一次日志备份记录的时间点
last_time = str2datetime(SQLServerRollbackHandler(cluster_id).query_last_log_time(current_time))
if last_time < restore_time:
# 如果最近一次日志备份记录的时间大于等于回滚时间 则不需要备份
if last_time >= restore_time:
continue

backup_dbs = ClusterServiceHandler(self.ticket.bk_biz_id).get_dbs_for_drs(
Expand Down

0 comments on commit 4556c69

Please sign in to comment.