mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update
This commit is contained in:
parent
4c4fe67ee0
commit
dbe02d12ee
@ -14,7 +14,7 @@ import (
|
||||
|
||||
type ResourcePool struct {
|
||||
poolsCount int
|
||||
pools []PoolSeg
|
||||
//pools []PoolSeg
|
||||
poolsMu sync.Mutex
|
||||
|
||||
history []PoolStatus
|
||||
@ -165,7 +165,7 @@ func (pool *ResourcePool) saveStatusHistory() {
|
||||
nodesCount += len(cur.Nodes)
|
||||
cur.Lock.Unlock()
|
||||
cur = cur.Next
|
||||
if cur == start {
|
||||
if cur.ID == start.ID {
|
||||
break
|
||||
}
|
||||
}
|
||||
@ -249,6 +249,7 @@ func (pool *ResourcePool) update(node NodeStatus) {
|
||||
|
||||
/* spilt seg */
|
||||
func (pool *ResourcePool) scaleSeg(seg *PoolSeg) {
|
||||
log.Info("Scaling seg ", seg.ID)
|
||||
go func() {
|
||||
pool.poolsMu.Lock()
|
||||
defer pool.poolsMu.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user