mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
policy maintenance mode
This commit is contained in:
parent
de3a74ae1a
commit
a1ccfc99ec
@ -6406,8 +6406,11 @@ function getBearerToken()
|
|||||||
*/
|
*/
|
||||||
function is_pandora_db_running()
|
function is_pandora_db_running()
|
||||||
{
|
{
|
||||||
|
// Get current DB name: useful for metaconsole connection to node.
|
||||||
|
$db_name = db_get_sql('SELECT DATABASE()');
|
||||||
|
|
||||||
$is_free_lock = mysql_db_process_sql(
|
$is_free_lock = mysql_db_process_sql(
|
||||||
'SELECT IS_FREE_LOCK("pandora_pandora_db") AS "value"',
|
'SELECT IS_FREE_LOCK("'.$db_name.'_pandora_db") AS "value"',
|
||||||
'affected_rows',
|
'affected_rows',
|
||||||
'',
|
'',
|
||||||
false
|
false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user