]> git.sur5r.net Git - openldap/commitdiff
move c->c_n_ops_executing/completed to the right place
authorJong Hyuk Choi <jongchoi@openldap.org>
Thu, 25 Sep 2003 20:14:53 +0000 (20:14 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Thu, 25 Sep 2003 20:14:53 +0000 (20:14 +0000)
servers/slapd/connection.c

index e7effae3468768ec2ce5adedc1c40733959c3cc3..61ab3bf5fbca06b25f98402cf15c611bae196725 100644 (file)
@@ -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 );