v.20.8Improvement
Fix data race in lgamma function detected by tsan
Fix data race inlgammafunction. This race was caught only intsan, no side effects a really happened. #13842 (Nikolai Kochetov).
Why it matters
This fix addresses a concurrency issue in thelgamma function that was detected by ThreadSanitizer (tsan). Although the race had no observable side effects, resolving it improves the reliability and thread-safety of the function.How to use it
This fix is applied internally within ClickHouse; no user action is required. Users benefit from improved stability when invoking thelgamma function in their queries.