Merge pull request #8619 from wanyaoqi/bugfix/wyq/fix-stream-disk

host: fix stream disk on add disk from snapshot
This commit is contained in:
Zexi Li
2020-11-03 10:39:36 +08:00
committed by GitHub
+5
View File
@@ -176,6 +176,11 @@ func (d *SGuestDiskSyncTask) syncDisksConf() {
d.changeCdrom()
return
}
if idxs := d.guest.GetNeedMergeBackingFileDiskIndexs(); len(idxs) > 0 {
d.guest.StreamDisks(context.Background(),
func() { d.guest.streamDisksComplete(context.Background()) }, idxs,
)
}
d.callback()
}