|
@@ -288,6 +288,7 @@ func ExtractByUdp(sid, eid string, ra *net.UDPAddr, instanceId ...string) {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
_id := qu.BsonIdToSId(v["_id"])
|
|
_id := qu.BsonIdToSId(v["_id"])
|
|
|
|
+ //......
|
|
var j, jf *ju.Job
|
|
var j, jf *ju.Job
|
|
var isSite bool
|
|
var isSite bool
|
|
if ext.IsFileField && (v["projectinfo"] != nil || v["attach_text"] != nil) {
|
|
if ext.IsFileField && (v["projectinfo"] != nil || v["attach_text"] != nil) {
|
|
@@ -298,11 +299,10 @@ func ExtractByUdp(sid, eid string, ra *net.UDPAddr, instanceId ...string) {
|
|
}
|
|
}
|
|
ext.TaskInfo.ProcessPool <- true
|
|
ext.TaskInfo.ProcessPool <- true
|
|
wg.Add(1)
|
|
wg.Add(1)
|
|
- go func(wg *sync.WaitGroup, j, jf *ju.Job) {
|
|
|
|
|
|
+ go func(wg *sync.WaitGroup) {
|
|
defer wg.Done()
|
|
defer wg.Done()
|
|
- //log.Debug(index,j.SourceMid,)
|
|
|
|
ext.ExtractProcess(j, jf, isSite)
|
|
ext.ExtractProcess(j, jf, isSite)
|
|
- }(&wg, j, jf)
|
|
|
|
|
|
+ }(&wg)
|
|
index++
|
|
index++
|
|
if index%1000 == 0 {
|
|
if index%1000 == 0 {
|
|
log.Debug("index:", index, ",页码:", i+1, ",_id:", _id)
|
|
log.Debug("index:", index, ",页码:", i+1, ",_id:", _id)
|