Skip to content

Commit e6b5310

Browse files
authored
XSI-1969 CA-418141 more thorough resource cleanup (#6699)
Fixing fabb45e "Also remove a VM from a VGPU explictly on resouce cleanup." That part was wrong - we must not remove the VM as we would lose it permanently.
2 parents 276111f + c048341 commit e6b5310

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ocaml/xapi/xapi_vm_lifecycle.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,7 @@ let force_state_reset_keep_current_operations ~__context ~self ~value:state =
925925
Db.VGPU.set_resident_on ~__context ~self:vgpu ~value:Ref.null ;
926926
Db.VGPU.set_scheduled_to_be_resident_on ~__context ~self:vgpu
927927
~value:Ref.null ;
928-
Db.VGPU.set_PCI ~__context ~self:vgpu ~value:Ref.null ;
929-
Db.VGPU.set_VM ~__context ~self:vgpu ~value:Ref.null
928+
Db.VGPU.set_PCI ~__context ~self:vgpu ~value:Ref.null
930929
) ;
931930
Db.VM.get_attached_PCIs ~__context ~self
932931
|> List.iter (fun pci ->

0 commit comments

Comments
 (0)