MQ up to down connections (MC => NODES)
This commit is contained in:
parent
753bb7ff03
commit
4e1110a052
|
@ -83,7 +83,7 @@ if (is_management_allowed() === false) {
|
|||
__(
|
||||
'This node is configured with centralized mode. All module groups information is read only. Go to %s to manage it.',
|
||||
'<a target="_blank" href="'.ui_get_meta_url(
|
||||
'index.php?sec=advanced&sec2=advanced/component_management'
|
||||
'index.php?sec=advanced&sec2=advanced/component_management&tab=module_group'
|
||||
).'">'.__('metaconsole').'</a>'
|
||||
)
|
||||
);
|
||||
|
|
|
@ -846,10 +846,10 @@ function mysql_db_get_value_sql($sql, $dbconnection=false)
|
|||
*
|
||||
* @return mixed The first row of the result or false
|
||||
*/
|
||||
function mysql_db_get_row_sql($sql, $search_history_db=false)
|
||||
function mysql_db_get_row_sql($sql, $search_history_db=false, $cache=true)
|
||||
{
|
||||
$sql .= ' LIMIT 1';
|
||||
$result = db_get_all_rows_sql($sql, $search_history_db);
|
||||
$result = db_get_all_rows_sql($sql, $search_history_db, $cache);
|
||||
|
||||
if ($result === false) {
|
||||
return false;
|
||||
|
|
|
@ -1004,10 +1004,10 @@ function oracle_db_get_value_sql($sql, $dbconnection=false)
|
|||
*
|
||||
* @return mixed The first row of the result or false
|
||||
*/
|
||||
function oracle_db_get_row_sql($sql, $search_history_db=false)
|
||||
function oracle_db_get_row_sql($sql, $search_history_db=false, $cache=true)
|
||||
{
|
||||
$sql = 'SELECT * FROM ('.$sql.') WHERE rownum < 2';
|
||||
$result = oracle_db_get_all_rows_sql($sql, $search_history_db);
|
||||
$result = oracle_db_get_all_rows_sql($sql, $search_history_db, $cache);
|
||||
|
||||
if ($result === false) {
|
||||
return false;
|
||||
|
|
|
@ -713,10 +713,10 @@ function postgresql_db_get_value_sql($sql, $dbconnection=false)
|
|||
*
|
||||
* @return mixed The first row of the result or false
|
||||
*/
|
||||
function postgresql_db_get_row_sql($sql, $search_history_db=false)
|
||||
function postgresql_db_get_row_sql($sql, $search_history_db=false, $cache=true)
|
||||
{
|
||||
$sql .= ' LIMIT 1';
|
||||
$result = postgresql_db_get_all_rows_sql($sql, $search_history_db);
|
||||
$result = postgresql_db_get_all_rows_sql($sql, $search_history_db, $cache);
|
||||
|
||||
if ($result === false) {
|
||||
return false;
|
||||
|
|
|
@ -442,21 +442,21 @@ function db_get_value_sql($sql, $dbconnection=false)
|
|||
*
|
||||
* @return mixed The first row of the result or false
|
||||
*/
|
||||
function db_get_row_sql($sql, $search_history_db=false)
|
||||
function db_get_row_sql($sql, $search_history_db=false, $cache=true)
|
||||
{
|
||||
global $config;
|
||||
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
return mysql_db_get_row_sql($sql, $search_history_db);
|
||||
return mysql_db_get_row_sql($sql, $search_history_db, $cache);
|
||||
|
||||
break;
|
||||
case 'postgresql':
|
||||
return postgresql_db_get_row_sql($sql, $search_history_db);
|
||||
return postgresql_db_get_row_sql($sql, $search_history_db, $cache);
|
||||
|
||||
break;
|
||||
case 'oracle':
|
||||
return oracle_db_get_row_sql($sql, $search_history_db);
|
||||
return oracle_db_get_row_sql($sql, $search_history_db, $cache);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1378,6 +1378,7 @@ function db_process_sql($sql, $rettype='affected_rows', $dbconnection='', $cache
|
|||
|
||||
if ($rc !== false) {
|
||||
if (enterprise_hook('is_metaconsole') === true
|
||||
&& isset($config['centralized_management']) === true
|
||||
&& (bool) $config['centralized_management'] === true
|
||||
&& $dbconnection === ''
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue