Merge remote-tracking branch 'origin/master'
This commit is contained in:
+4
-4
@@ -106,8 +106,8 @@ class AddDistImagesBatch extends BaseBatch{
|
|||||||
def total = communitys.size()
|
def total = communitys.size()
|
||||||
for(def i=0;i<communitys.size();i++){
|
for(def i=0;i<communitys.size();i++){
|
||||||
final def d = communitys[i]
|
final def d = communitys[i]
|
||||||
// fixedThreadPool.execute(new Runnable() {
|
fixedThreadPool.execute(new Runnable() {
|
||||||
// void run() {
|
void run() {
|
||||||
try{
|
try{
|
||||||
addCount.addAndGet(1)
|
addCount.addAndGet(1)
|
||||||
def query = new BasicDBObject("city", d.city).append("district",d.region).append("name",d.name).append("source","安居客").append("match_id", new BasicDBObject('$exists', true))
|
def query = new BasicDBObject("city", d.city).append("district",d.region).append("name",d.name).append("source","安居客").append("match_id", new BasicDBObject('$exists', true))
|
||||||
@@ -136,8 +136,8 @@ class AddDistImagesBatch extends BaseBatch{
|
|||||||
} finally {
|
} finally {
|
||||||
latch.countDown()
|
latch.countDown()
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
latch.await()
|
latch.await()
|
||||||
return rets
|
return rets
|
||||||
|
|||||||
Reference in New Issue
Block a user