[fix](overflow) show backends overflow for backend ids (#35245)

This commit is contained in:
Yongqiang YANG
2024-05-23 14:33:42 +08:00
committed by yiguolei
parent dd567fa774
commit 78fab91d6b

View File

@ -2086,7 +2086,7 @@ public class ShowExecutor {
backendInfos.sort(new Comparator<List<String>>() {
@Override
public int compare(List<String> o1, List<String> o2) {
return Integer.parseInt(o1.get(0)) - Integer.parseInt(o2.get(0));
return Long.compare(Long.parseLong(o1.get(0)), Long.parseLong(o2.get(0)));
}
});