use safe(r) default

This commit is contained in:
Pierangelo Masarati 2005-04-26 20:10:15 +00:00
parent c833ff220c
commit bb21f09d1f
3 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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;