@ -2633,8 +2633,6 @@ sub shutdown_virsh
if ( $ shutdown )
{
$ anvil - > Log - > variables ( { source = > $ THIS_FILE , line = > __LINE__ , level = > $ debug , list = > { "sys::database::connections" = > $ anvil - > data - > { sys } { database } { connections } } } ) ;
if ( $ anvil - > data - > { sys } { database } { connections } )
{
if ( $ anvil - > data - > { sys } { database } { connections } )
{
my $ anvil_uuid = $ anvil - > Cluster - > get_anvil_uuid ( { debug = > $ debug } ) ;
@ -2672,7 +2670,6 @@ WHERE
}
}
}
}
$ anvil - > Log - > entry ( { source = > $ THIS_FILE , line = > __LINE__ , 'print' = > 1 , level = > 1 , key = > "log_0520" , variables = > { server = > $ server } } ) ;
my ( $ output , $ return_code ) = $ anvil - > System - > call ( {
debug = > $ debug ,
@ -2729,8 +2726,12 @@ WHERE
} } ) ;
# Mark it as stopped now. (if we have a server_uuid, we have a database connection)
$ anvil - > Log - > variables ( { source = > $ THIS_FILE , line = > __LINE__ , level = > $ debug , list = > { server_uuid = > $ server_uuid } } ) ;
if ( $ server_uuid )
{
$ anvil - > Log - > variables ( { source = > $ THIS_FILE , line = > __LINE__ , level = > $ debug , list = > {
"sys::database::connections" = > $ anvil - > data - > { sys } { database } { connections } ,
} } ) ;
if ( $ anvil - > data - > { sys } { database } { connections } )
{
$ anvil - > Database - > get_servers ( { debug = > $ debug } ) ;