Permalink
Browse files

Issue 200: Don't fire dtrace probe as the last thing in a function

Some compilers (at least gcc 4.6.1) may optimize away the code
when using certain optimization levels
  • Loading branch information...
1 parent 3eb5995 commit 6298b3978687530bc9d219b6ac707a1b681b2a46 @trondn trondn committed Jul 18, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 memcached.c
View
@@ -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;
}
}

0 comments on commit 6298b39

Please sign in to comment.