public function connect_master()
{
if ($this->wlink) {
return $this->wlink;
}
$conf = $this->conf['master'];
if (!$this->wlink) {
$this->wlink = $this->real_connect($conf['host'], $conf['user'], $conf['password'], $conf['name'], $conf['charset'], $conf['engine']);
}
return $this->wlink;
}