This commit is contained in:
shoopea 2020-01-21 15:42:17 +08:00
parent 9b5fac7dde
commit d52e58493a

11
job.go
View File

@ -1432,10 +1432,9 @@ func jobVaultUserStatus(j Job) {
func jobGWithdraw(j Job) {
var (
p JobPayloadGWithdraw
reqTab map[int64]int64
doneTab map[int64]int64
inspectTab map[string]bool
p JobPayloadGWithdraw
reqTab map[int64]int64
doneTab map[int64]int64
)
log.Printf("jobGWithdraw[%d] : Starting.\n", j.ID64)
@ -1456,8 +1455,6 @@ func jobGWithdraw(j Job) {
doneTab[cacheObjSubType[`item_part`]] = 1 << 14
doneTab[cacheObjSubType[`item_other`]] = 1 << 15
inspectTab = make(map[string]bool)
err := setJobStart(j.ID64)
logOnError(err, "jobGWithdraw : setJobStart")
@ -1531,7 +1528,7 @@ func jobGWithdraw(j Job) {
createJob(cacheObjSubType[`job_msg_del`], objJobPriority, j.UserID64, 0, time.Now().UTC(), b2)
if isUnique {
for k, req := range p.Items {
for _, req := range p.Items {
if req.Inspect {
p2 = JobPayloadMsgDel{
MsgTypeID64: cacheObjSubType[`msg_g_inspect_req`],