Commit Graph

1 Commits

Author SHA1 Message Date
Michal Schorm
b52a9bbc4a Fix MTR port calculation
Lately I experienced a great problem with the MTR port calculations.
Most (but not all) of the testsuite runs ended immediatelly with:
 |  mysql-test-run: *** ERROR: MTR_BUILD_THREAD number results in a port outside 5001 - 32767 (*****)
where the:
 |  (*****)
at the end is a string that contains the numbers used for the calculations.
The numbers were totally off, without any good reason why the calculation work that way.

I've reached MariaDB upstream and this patch was proposed in the ZULIP thread:
  https://mariadb.zulipchat.com/#narrow/stream/118759-general/topic/MTR.20--port-base

The upstream is hesitatnt to merge it righ away, but as far as I've tested,
it works well for me and what's most important, it unblocks the package builds.
2024-09-23 14:53:43 +02:00