Use arg cgroupRoot,not nodeConfig.CgroupRoot
Using both arg cgroupRoot and nodeConfig.CgroupRoot is confused in function NewQOSContainerManager Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
@@ -63,7 +63,7 @@ type qosContainerManagerImpl struct {
|
||||
func NewQOSContainerManager(subsystems *CgroupSubsystems, cgroupRoot string, nodeConfig NodeConfig) (QOSContainerManager, error) {
|
||||
if !nodeConfig.CgroupsPerQOS {
|
||||
return &qosContainerManagerNoop{
|
||||
cgroupRoot: CgroupName(nodeConfig.CgroupRoot),
|
||||
cgroupRoot: CgroupName(cgroupRoot),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user