Skip to content

Commit

Permalink
ddl: use = to replace with like when querying complete task_key (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei committed Mar 2, 2023
1 parent cfe9703 commit 67979fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/job_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ func GetBackfillJobs(sess *session, tblName, condition string, label string) ([]
func RemoveBackfillJob(sess *session, isOneEle bool, backfillJob *BackfillJob) error {
sql := "delete from mysql.tidb_background_subtask"
if !isOneEle {
sql += fmt.Sprintf(" where task_key like '%s'", backfillJob.keyString())
sql += fmt.Sprintf(" where task_key = '%s'", backfillJob.keyString())
} else {
sql += fmt.Sprintf(" where task_key like '%s'", backfillJob.PrefixKeyString())
}
Expand Down

0 comments on commit 67979fb

Please sign in to comment.