]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/abandon.c
DB_RMW flag to dn2id and id2entry
[openldap] / servers / slapd / abandon.c
index 7da48204e7b88cc1ce91cc278dfe149d708c0fba..b092d124f338f2c1d2713d7a0fe672af46949edd 100644 (file)
@@ -1,7 +1,7 @@
 /* abandon.c - decode and handle an ldap abandon operation */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -32,7 +32,7 @@ do_abandon(
 {
        ber_int_t               id;
        Operation       *o;
-       int rc, notfound;
+       int rc;
 
 #ifdef NEW_LOGGING
        LDAP_LOG(( "operation", LDAP_LEVEL_ENTRY, "conn: %d do_abandon\n",
@@ -92,9 +92,7 @@ do_abandon(
 
        LDAP_STAILQ_FOREACH( o, &conn->c_ops, o_next ) {
                if ( o->o_msgid == id ) {
-                       ldap_pvt_thread_mutex_lock( &o->o_abandonmutex );
                        o->o_abandon = 1;
-                       ldap_pvt_thread_mutex_unlock( &o->o_abandonmutex );
                        goto done;
                }
        }