db.re_local_stars.update({$where:function(){
for(var current in this){
for(var other in this){
if(current != other && this["name"] == this["cname"]){
return true;
}
}
}
return false;
}},{$set:{country:"xxx"}},{
multi: true,
})
db.re_local_stars.update({$where:function(){
for(var current in this){
for(var other in this){
if(current != other && this["name"] == this["cname"]){
return false;
}
}
}
return true;
}},{$set:{country:"xxx"}},{
multi: true,
})