Skip to content

Commit

Permalink
Issue 200: Don't fire dtrace probe as the last thing in a function
Browse files Browse the repository at this point in the history
Some compilers (at least gcc 4.6.1) may optimize away the code
when using certain optimization levels
  • Loading branch information
trondn committed Jul 18, 2011
1 parent 3eb5995 commit 6298b39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions memcached.c
Expand Up @@ -638,11 +638,10 @@ static void conn_set_state(conn *c, enum conn_states state) {
state_text(state));
}

c->state = state;

if (state == conn_write || state == conn_mwrite) {
MEMCACHED_PROCESS_COMMAND_END(c->sfd, c->wbuf, c->wbytes);
}
c->state = state;
}
}

Expand Down

0 comments on commit 6298b39

Please sign in to comment.