diff options
author | Trond Norbye <trond.norbye@gmail.com> | 2011-07-18 12:49:22 +0200 |
---|---|---|
committer | Trond Norbye <trond.norbye@gmail.com> | 2011-07-18 12:51:47 +0200 |
commit | 6298b3978687530bc9d219b6ac707a1b681b2a46 (patch) | |
tree | 23ad6948a6f7b58bfb83ec4509d746d3ec9a8460 | |
parent | 3eb599528b1d593bbf1decccd6f8cb0225312306 (diff) | |
download | memcached-6298b3978687530bc9d219b6ac707a1b681b2a46.tar.gz |
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
-rw-r--r-- | memcached.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/memcached.c b/memcached.c index a7a90b7..7905e6c 100644 --- a/memcached.c +++ b/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; } } |