mirror of https://github.com/sysown/proxysql
Address review feedback on server selection (PR #5508)
- Fix truncation: use uint64_t modulo instead of unsigned int cast when computing target from total_weight (prevents skewed selection when total_weight > UINT_MAX) - Remove unused #include <cstdlib> - Add docstring note about max_latency_us=0 semantics: in production this means "use thread default", this extraction treats it as "no limit" — callers should resolve defaults before populating the struct - Remove trailing "fix" comment from testpull/5508/head
parent
7697d4f43e
commit
7e49c41975
Loading…
Reference in new issue