mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user