diff --git a/tools/anvil-daemon b/tools/anvil-daemon index 570f9b44..0c10f6c6 100755 --- a/tools/anvil-daemon +++ b/tools/anvil-daemon @@ -845,6 +845,8 @@ FROM states WHERE state_name LIKE 'db_in_use::".$host_uuid."::%' +AND + state_host_uuid = ".$anvil->Database->quote($anvil->Get->host_uuid)." ;"; $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0124", variables => { query => $query }}); my $results = $anvil->Database->query({query => $query, source => $THIS_FILE, line => __LINE__});