fix issues with pool membership synchronization

This commit is contained in:
2026-05-27 22:21:59 +00:00
parent 72ca7b8fc5
commit f430589512
2 changed files with 22 additions and 17 deletions
+6 -6
View File
@@ -56,6 +56,12 @@ func (cluster *Cluster) Sync() error {
}
}
// after synchronizing an instance, resync pool membership
err = cluster.ResolvePoolMembership()
if err != nil {
err_ch <- err
}
err_ch <- nil
}()
@@ -276,12 +282,6 @@ func (host *Node) RebuildInstance(instancetype InstanceType, vmid uint) error {
}
}
// after synchronizing an instance, resync pool membership
err = host.cluster.ResolvePoolMembership()
if err != nil {
err_ch <- err
}
err_ch <- nil
}()