]> git.sur5r.net Git - openldap/commitdiff
Remove unneeded locking. Don't wait for memp_trickle to complete,
authorRalf Haferkamp <ralf@openldap.org>
Fri, 28 Nov 2008 16:09:40 +0000 (16:09 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Fri, 28 Nov 2008 16:09:40 +0000 (16:09 +0000)
loosing an signal doesn't hurt in this case.

servers/slapd/back-bdb/tools.c

index 66b2e9a32f389443b95a446a5a96946165fc870f..c06711677d955710dd21055c8d9745b3474ef3d5 100644 (file)
@@ -522,9 +522,7 @@ ID bdb_tool_entry_put(
        }
 
        if (( slapMode & SLAP_TOOL_QUICK ) && (( e->e_id & 0xfff ) == 0xfff )) {
-               ldap_pvt_thread_mutex_lock( &bdb_tool_trickle_mutex );
                ldap_pvt_thread_cond_signal( &bdb_tool_trickle_cond );
-               ldap_pvt_thread_mutex_unlock( &bdb_tool_trickle_mutex );
        }
 
        if ( !bdb->bi_linear_index )