You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixescockroachdb#95424
`FormatCache.lookup()` previously wrapped calls to `cache.UnorderedCache.Get()`
in `RWMutex.RLock()`/`RWMutex.RUnlock()` which allowed for data races because
`UnorderedCache.Get()` can modify the state of its LRU cache.
This PR fixes the race condition by changing the `RWMutex` to a `Mutex` to
handle cases where the LRU cache is modified.
Release note (bug fix): Fix nil pointer dereference caused by race condition
when using to_char builtin.
0 commit comments