|
@@ -14,6 +14,7 @@ require_once(BASE_CORE_PATH . '/framework/function/statistic_tm.php');
|
|
class Db
|
|
class Db
|
|
{
|
|
{
|
|
const ErrUnConnect = 2006;
|
|
const ErrUnConnect = 2006;
|
|
|
|
+ const ErrLock = 1205;
|
|
|
|
|
|
private static $link = array();
|
|
private static $link = array();
|
|
private static $iftransacte = true;
|
|
private static $iftransacte = true;
|
|
@@ -125,7 +126,7 @@ class Db
|
|
$error = "Db Error: no= error={$errno}" . mysqli_error(self::$link[$host]);
|
|
$error = "Db Error: no= error={$errno}" . mysqli_error(self::$link[$host]);
|
|
Log::record($error."\r\n".$sql,Log::ERR);
|
|
Log::record($error."\r\n".$sql,Log::ERR);
|
|
|
|
|
|
- if($errno == self::ErrUnConnect)
|
|
|
|
|
|
+ if($errno == self::ErrUnConnect || $errno == self::ErrLock)
|
|
{
|
|
{
|
|
if($count > 0) return false;
|
|
if($count > 0) return false;
|
|
self::closeLink($host);
|
|
self::closeLink($host);
|