From: Ralf Haferkamp Date: Fri, 28 Nov 2008 16:09:40 +0000 (+0000) Subject: Remove unneeded locking. Don't wait for memp_trickle to complete, X-Git-Tag: ACLCHECK_0~1046 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=760660a4a25b65b45893322703dec3e6097e84cd;p=openldap Remove unneeded locking. Don't wait for memp_trickle to complete, loosing an signal doesn't hurt in this case. --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 66b2e9a32f..c06711677d 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -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 )