MXS-1632: Take mxb::atomic::add into use
The function now mostly replaces the use of atomic_add_ functions declared in atomic.h.
This commit is contained in:
@ -289,10 +289,11 @@ private:
|
||||
{
|
||||
if (session_trx_is_ending(m_client->session))
|
||||
{
|
||||
atomic_add_uint64(m_qc.is_trx_still_read_only()
|
||||
? &m_router->stats().n_ro_trx
|
||||
: &m_router->stats().n_rw_trx,
|
||||
1);
|
||||
mxb::atomic::add(m_qc.is_trx_still_read_only()
|
||||
? &m_router->stats().n_ro_trx
|
||||
: &m_router->stats().n_rw_trx,
|
||||
1,
|
||||
mxb::atomic::RELAXED);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user