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:
@ -131,7 +131,7 @@ bool RWSplitSession::handle_target_is_all(route_target_t route_target,
|
||||
else if (route_session_write(gwbuf_clone(querybuf), packet_type, qtype))
|
||||
{
|
||||
result = true;
|
||||
atomic_add_uint64(&m_router->stats().n_all, 1);
|
||||
mxb::atomic::add(&m_router->stats().n_all, 1, mxb::atomic::RELAXED);
|
||||
}
|
||||
|
||||
m_qc.set_large_query(is_large);
|
||||
|
Reference in New Issue
Block a user