Exclude MXS_DEBUG in release builds

Now, MXS_DEBUG turns into a nop in release builds.
This commit is contained in:
Johan Wikman
2016-10-24 13:41:00 +03:00
parent 1a2e0ba3ee
commit 3915b4e7c7
8 changed files with 23 additions and 26 deletions

View File

@ -914,9 +914,8 @@ static void freeSession(ROUTER* router_instance,
{
ROUTER_INSTANCE *router = (ROUTER_INSTANCE *)router_instance;
ROUTER_SLAVE *slave = (ROUTER_SLAVE *)router_client_ses;
int prev_val;
prev_val = atomic_add(&router->stats.n_slaves, -1);
ss_debug(int prev_val = ) atomic_add(&router->stats.n_slaves, -1);
ss_dassert(prev_val > 0);
/*