From: Jong Hyuk Choi Date: Thu, 25 Sep 2003 20:14:53 +0000 (+0000) Subject: move c->c_n_ops_executing/completed to the right place X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~651 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4495320839937625dd120c216c1ce627a8545bdb;p=openldap move c->c_n_ops_executing/completed to the right place --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index e7effae346..61ab3bf5fb 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1079,9 +1079,6 @@ operations_error: ldap_pvt_thread_mutex_lock( &conn->c_mutex ); - conn->c_n_ops_executing--; - conn->c_n_ops_completed++; - LDAP_STAILQ_REMOVE( &conn->c_ops, op, slap_op, o_next); LDAP_STAILQ_NEXT(op, o_next) = NULL; @@ -1094,6 +1091,8 @@ operations_error: co_op_free: + conn->c_n_ops_executing--; + conn->c_n_ops_completed++; memctx = NULL; ber_set_option( op->o_ber, LBER_OPT_BER_MEMCTX, &memctx ); slap_op_free( op );