|
@@ -1979,7 +1979,9 @@ func ResetDataState() {
|
|
|
update = append(update, map[string]interface{}{"$set": map[string]interface{}{"delete": true}})
|
|
|
}
|
|
|
}
|
|
|
- arr2 = append(arr2, update)
|
|
|
+ if len(update) == 2 {
|
|
|
+ arr2 = append(arr2, update)
|
|
|
+ }
|
|
|
if len(arr2) > 500 {
|
|
|
util.MgoS.UpdateBulk("spider_historydata", arr2...)
|
|
|
arr2 = [][]map[string]interface{}{}
|