• Модуль: cluster
  • Путь к файлу: ~/bitrix/modules/cluster/classes/mysql/dbnode_check.php
  • Класс: CClusterDBNodeCheck
  • Вызов: CClusterDBNodeCheck::GetServerVariables
static function GetServerVariables($DB, $arVariables, $db_mask)
{
	if($db_mask)
		$where = " like '".$DB->ForSQL($db_mask)."'";
	else
		$where = "";

	$rs = $DB->Query("show variables ".$where, false, '', array("fixed_connection"=>true));
	while($ar = $rs->Fetch())
	{
		if(array_key_exists($ar["Variable_name"], $arVariables))
			$arVariables[$ar["Variable_name"]] = $ar["Value"];
	}

	return $arVariables;
}