Fixed a bug where reaping db_in_use states wasn't restricted to the caller's host_uuid.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 3 years ago
parent aa7d9bdf14
commit 7212ea1c2f
  1. 2
      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__});

Loading…
Cancel
Save