You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("key size for map %q is not expected 8 bytes (u64), it is %d bytes", cfg.CgroupIDMap.Name, keySize)
32
+
varexpectedKeySizeint
33
+
switchcfg.CgroupIDMap.Type {
34
+
caseconfig.CgroupIDMapHashType:
35
+
expectedKeySize=8
36
+
caseconfig.CgroupIDMapCgrpStorageType:
37
+
expectedKeySize=4
38
+
}
39
+
ifkeySize!=expectedKeySize {
40
+
returnnil, fmt.Errorf("key size for map %q is not expected %d bytes for map type %s, it is %d bytes", cfg.CgroupIDMap.Name, expectedKeySize, cfg.CgroupIDMap.Type, keySize)
30
41
}
31
42
valueSize:=m.ValueSize()
32
43
ifvalueSize!=8 {
33
44
returnnil, fmt.Errorf("value size for map %q is not expected 8 bytes (u64), it is %d bytes", cfg.CgroupIDMap.Name, valueSize)
0 commit comments