Merge pull request #14646 from steven-zou/fix/value_out_of_range_2.1

CHERRY-PICK: fix(jobservice): value out of range (#14634)
This commit is contained in:
Steven Zou 2021-04-14 18:53:55 +08:00 committed by GitHub
commit 696f3da304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ func (bm *basicManager) GetJobs(q *query.Parameter) ([]*job.Stats, int64, error)
return nil, 0, errors.New("malform scan results")
}
nextCur, err := strconv.ParseUint(string(values[0].([]byte)), 10, 8)
nextCur, err := strconv.ParseInt(string(values[0].([]byte)), 10, 64)
if err != nil {
return nil, 0, err
}
@ -166,7 +166,7 @@ func (bm *basicManager) GetJobs(q *query.Parameter) ([]*job.Stats, int64, error)
}
}
return results, int64(nextCur), nil
return results, nextCur, nil
}
// GetPeriodicExecution is implementation of Manager.GetPeriodicExecution