mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): add check default mem dev exist on hotplug (#22140)
This commit is contained in:
@@ -2474,7 +2474,7 @@ func (task *SGuestHotplugCpuMemTask) Start() {
|
||||
}
|
||||
|
||||
func (task *SGuestHotplugCpuMemTask) startAddCpu() {
|
||||
if task.Desc.MemDesc.Mem.Cpus != nil && len(task.Desc.CpuNumaPin) > 0 {
|
||||
if task.Desc.MemDesc.Mem != nil && task.Desc.MemDesc.Mem.Cpus != nil && len(task.Desc.CpuNumaPin) > 0 {
|
||||
task.buildVcpusMap()
|
||||
} else {
|
||||
task.Monitor.GetCpuCount(task.onGetCpuCount)
|
||||
|
||||
Reference in New Issue
Block a user