Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/app/service/cronjob_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func loadDbsForJob(cronjob model.Cronjob) []DatabaseHelper {
dbs = append(dbs, DatabaseHelper{
ID: mysql.ID,
DBType: cronjob.DBType,
Database: mysql.Name,
Database: mysql.Database,
Name: mysql.Name,
})
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks correct and optimized with no immediate irregularities or potential issues. The change from mysql.Name to mysql.Database maintains consistency but does not appear necessary unless you have specific requirements that dictate using different names for databases versus IDs. If both columns should be used, the code is already correctly handling this scenario.

Expand Down
Loading