- 论坛徽章:
- 0
|
看org\csource\fastdfs\TrackerClient.java的源码,会对groupName进行截取:
bs = groupName.getBytes(ClientGlobal.g_charset);
bGroupName = new byte[ProtoCommon.FDFS_GROUP_NAME_MAX_LEN];
bFileName = filename.getBytes(ClientGlobal.g_charset);
if (bs.length <= ProtoCommon.FDFS_GROUP_NAME_MAX_LEN) {
len = bs.length;
} else {
len = ProtoCommon.FDFS_GROUP_NAME_MAX_LEN;
}
Arrays.fill(bGroupName, (byte) 0);
System.arraycopy(bs, 0, bGroupName, 0, len);
public static final int FDFS_GROUP_NAME_MAX_LEN = 16;刚好是16,即你说的截断到只剩“morningCheck2018”刚好长度是16 |
|