get_tainted() was using an atomic store from the atomic value to a
local one instead of using an atomic load. In practice it has no effect
given the relatively rare updates of this field and the fact that it's
read only when dumping "show info" output, but better fix it.
There's probably no need to backport this.
unsigned int get_tainted()
{
- int tainted_state;
- HA_ATOMIC_STORE(&tainted_state, tainted);
- return tainted_state;
+ return HA_ATOMIC_LOAD(&tainted);
}