mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-17 14:27:30 +08:00
修改动态加载module出现锁被重置
This commit is contained in:
@@ -2,6 +2,7 @@ package service
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"reflect"
|
||||
"strings"
|
||||
@@ -80,5 +81,7 @@ func (slf *BaseService) Init(iservice IService) error {
|
||||
}
|
||||
|
||||
slf.serviceid = InstanceServiceMgr().GenServiceID()
|
||||
slf.BaseModule.rwModuleLocker = &sync.Mutex{}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user