mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#4210 don't setup indexing threads if no indexing is defined.
This commit is contained in:
parent
b3c8a976ec
commit
d84ffb62a6
@ -93,7 +93,8 @@ int bdb_tool_entry_open(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set up for threaded slapindex */
|
/* Set up for threaded slapindex */
|
||||||
if (( slapMode & (SLAP_TOOL_QUICK|SLAP_TOOL_READONLY)) == SLAP_TOOL_QUICK) {
|
if (( slapMode & (SLAP_TOOL_QUICK|SLAP_TOOL_READONLY)) == SLAP_TOOL_QUICK
|
||||||
|
&& bdb->bi_nattrs ) {
|
||||||
if ( !bdb_tool_info ) {
|
if ( !bdb_tool_info ) {
|
||||||
int i;
|
int i;
|
||||||
ldap_pvt_thread_mutex_init( &bdb_tool_index_mutex );
|
ldap_pvt_thread_mutex_init( &bdb_tool_index_mutex );
|
||||||
|
Loading…
Reference in New Issue
Block a user