Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f10491f

Browse files
committedJan 23, 2025·
be:手动备份成功后清除警告
1 parent 5457546 commit f10491f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/main/java/com/rebuild/web/admin/ConfigurationController.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.rebuild.core.support.DataDesensitized;
2525
import com.rebuild.core.support.License;
2626
import com.rebuild.core.support.RebuildConfiguration;
27+
import com.rebuild.core.support.SysbaseHeartbeat;
2728
import com.rebuild.core.support.i18n.Language;
2829
import com.rebuild.core.support.integration.QiniuCloud;
2930
import com.rebuild.core.support.integration.SMSender;
@@ -145,6 +146,7 @@ public RespBody postSystemsBackup(HttpServletRequest request) {
145146
if (type == 1 || type == 3) {
146147
try {
147148
dbFile = "_backups/" + new DatabaseBackup().backup(backups).getName();
149+
SysbaseHeartbeat.setItem(SysbaseHeartbeat.DatabaseBackupFail, null);
148150
} catch (Exception e) {
149151
dbFile = "ERR:" + e.getMessage();
150152
log.error("Executing [DatabaseBackup] fails", e);
@@ -153,6 +155,7 @@ public RespBody postSystemsBackup(HttpServletRequest request) {
153155
if (type == 2 || type == 3) {
154156
try {
155157
fileFile = "_backups/" + new DatafileBackup().backup(backups).getName();
158+
SysbaseHeartbeat.setItem(SysbaseHeartbeat.DataFileBackupFail, null);
156159
} catch (Exception e) {
157160
fileFile = "ERR:" + e.getMessage();
158161
log.error("Executing [DataFileBackup] fails", e);

0 commit comments

Comments
 (0)
Please sign in to comment.