正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -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; |
-
请 注册 或 登录 后发表评论