Commit a65619a
committed
Fix port calculation for TiDB versions to avoid invalid ports
The old calculation '34$(tr -d .)' produced 346512 for version 6.5.12,
which exceeds the maximum port number (65535).
New calculation: 34000 + (minor * 100) + patch
- 6.1.7 -> 34107
- 6.5.12 -> 34512
- 7.1.6 -> 34106
- 7.5.7 -> 34507
- 8.1.2 -> 34102
- 8.5.3 -> 34503
All ports are now valid (< 65535) and unique per version.1 parent 095c87e commit a65619a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments