Skip to content

Commit 7bc2bbc

Browse files
authored
fix: Fix the problem of failed creation of child node snapshots (#8898)
Refs #8897
1 parent a7ec06e commit 7bc2bbc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

agent/app/service/snapshot_create.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,7 @@ func loadDbConn(snap *snapHelper, targetDir string, req dto.SnapshotCreate) erro
268268
_ = taskDB.Where("id = ?", req.TaskID).Delete(&model.Task{}).Error
269269
}
270270
if !req.WithOperationLog {
271-
err = snap.snapCoreDB.Exec("DELETE FROM operation_logs").Error
272-
snap.Task.LogWithStatus(i18n.GetMsgByKey("SnapDeleteOperationLog"), err)
273-
if err != nil {
274-
return err
275-
}
271+
_ = snap.snapCoreDB.Exec("DELETE FROM operation_logs").Error
276272
}
277273
if !req.WithLoginLog {
278274
err = snap.snapCoreDB.Exec("DELETE FROM login_logs").Error

0 commit comments

Comments
 (0)