Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 6298b3978687530bc9d219b6ac707a1b681b2a46 1 parent 3eb5995
@trondn trondn authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  memcached.c
View
3  memcached.c
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.