1
This commit is contained in:
parent
2e93e6e384
commit
73f17103e0
@ -49,8 +49,7 @@ function getMarketMysqlConfig($hash_value)
|
|||||||
die('hash_value < 0 ' . $hash_value);
|
die('hash_value < 0 ' . $hash_value);
|
||||||
}
|
}
|
||||||
global $g_conf_market_mysql_cluster;
|
global $g_conf_market_mysql_cluster;
|
||||||
$idx = $hash_value % count($g_conf_market_mysql_cluster);
|
return $g_conf_market_mysql_cluster;
|
||||||
return $g_conf_market_mysql_cluster[$idx];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRedisConfig($hash_value)
|
function getRedisConfig($hash_value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user