Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
e81cbbc5
Commit
e81cbbc5
authored
Oct 19, 2021
by
Francesc Guasch
Browse files
wip(backend): do not lock if only refreshing
parent
decf4f31
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
e81cbbc5
...
...
@@ -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 "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment