作者 邓超

es

@@ -265,7 +265,12 @@ class SyncToEsCmd { @@ -265,7 +265,12 @@ class SyncToEsCmd {
265 $this->es->setIndex($index); 265 $this->es->setIndex($index);
266 // 检查数据库是否存在 266 // 检查数据库是否存在
267 if(empty($this->checkEsIndex[$index])){ 267 if(empty($this->checkEsIndex[$index])){
268 - _echo("{$index} 创建索引 ".$this->setEsMap($index)); 268 + $m = $this->setEsMap($index);
  269 + _echo("{$index} 创建索引 ".$m);
  270 + if(!$m){
  271 + $this->log($data_id,$index);
  272 + return;
  273 + }
269 } 274 }
270 // 下次不在检查 275 // 下次不在检查
271 $this->checkEsIndex[$index] = 1; 276 $this->checkEsIndex[$index] = 1;