mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use safe(r) default
This commit is contained in:
parent
c833ff220c
commit
bb21f09d1f
@ -202,6 +202,7 @@ typedef struct metatarget_t {
|
||||
#define META_RETRY_UNDEFINED (-2)
|
||||
#define META_RETRY_FOREVER (-1)
|
||||
#define META_RETRY_NEVER (0)
|
||||
#define META_RETRY_DEFAULT (3)
|
||||
|
||||
struct ldaprwmap mt_rwmap;
|
||||
} metatarget_t;
|
||||
|
@ -75,8 +75,6 @@ new_target( void )
|
||||
|
||||
ldap_back_map_init( &mt->mt_rwmap.rwm_at, &mapping );
|
||||
|
||||
mt->mt_nretries = META_RETRY_UNDEFINED;
|
||||
|
||||
return mt;
|
||||
}
|
||||
|
||||
|
@ -89,6 +89,10 @@ meta_back_db_init(
|
||||
|
||||
ldap_pvt_thread_mutex_init( &mi->mi_conn_mutex );
|
||||
ldap_pvt_thread_mutex_init( &mi->mi_cache.mutex );
|
||||
|
||||
/* safe default */
|
||||
mi->mi_nretries = META_RETRY_DEFAULT;
|
||||
|
||||
be->be_private = mi;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user