From 7212ea1c2f46d5bd32a9899cdf1dff8cc75fb167 Mon Sep 17 00:00:00 2001 From: Digimer Date: Tue, 29 Mar 2022 14:53:46 -0400 Subject: [PATCH] Fixed a bug where reaping db_in_use states wasn't restricted to the caller's host_uuid. Signed-off-by: Digimer --- tools/anvil-daemon | 2 ++ 1 file changed, 2 insertions(+) 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__});