Commit e81cbbc5 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(backend): do not lock if only refreshing

parent decf4f31
......@@ -3444,7 +3444,11 @@ sub _domain_working {
my $sth = $CONNECTOR->dbh->prepare("SELECT id, status FROM requests "
." WHERE id <> ? AND id_domain=? "
." AND (status <> 'requested' AND status <> 'done' AND status <> 'waiting' "
." AND command <> 'set_base_vm')");
." AND command <> 'set_base_vm'"
." AND command <> 'set_time'"
." AND command NOT LIKE 'refresh_machine%' "
." )"
);
$sth->execute($id_request, $id_domain);
my ($id, $status) = $sth->fetchrow;
# warn "CHECKING DOMAIN WORKING "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment