Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAR-483 bug fix #2279

Merged
merged 1 commit into from Jul 8, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion ocaml/xapi/message_forwarding.ml
Expand Up @@ -933,7 +933,9 @@ module Forward = functor(Local: Custom_actions.CUSTOM_ACTIONS) -> struct
with_global_lock
(fun () ->
finally_clear_host_operation ~__context ~host:suitable_host ?host_op ();
Db.VM.set_scheduled_to_be_resident_on ~__context ~self:vm ~value:Ref.null))
(* In certain cases, VM might have been destroyed as a consequence of operation *)
if Db.is_valid_ref __context vm then
Db.VM.set_scheduled_to_be_resident_on ~__context ~self:vm ~value:Ref.null))

(* Used by VM.start_on, VM.resume_on, VM.migrate to verify a host has enough resource and to
'allocate_vm_to_host' (ie set the 'scheduled_to_be_resident_on' field) *)
Expand Down