修复一处redisd master 返回的错误对象

This commit is contained in:
尘缘
2016-05-08 23:29:06 +08:00
parent dccca49419
commit cb7f4e8d57

View File

@@ -111,7 +111,8 @@ class Redisd
public function master($master = false)
{
if (isset(self::$redis_rw_handler[$master])) {
return $this->handler = self::$redis_rw_handler[$master];
$this->handler = self::$redis_rw_handler[$master];
return $this;
}
//如果不为主则从配置的host剔除主并随机读从失败以后再随机选择从
@@ -186,7 +187,8 @@ class Redisd
throw new Exception($e->getMessage(), $e->getCode());
}
return self::$redis_rw_handler[$master] = $this->handler;
self::$redis_rw_handler[$master] = $this->handler;
return $this;
}
/**