From: Howard Chu Date: Fri, 11 Feb 2005 10:20:16 +0000 (+0000) Subject: Delete unused syncrepl_pool X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~182 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b06eea3d999fcbd65744c3982c630da069920278;p=openldap Delete unused syncrepl_pool --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index daaf245439..f64e661ea7 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -62,9 +62,6 @@ BackendInfo *backendInfo = NULL; int nBackendDB = 0; BackendDB *backendDB = NULL; -ldap_pvt_thread_pool_t syncrepl_pool; -int syncrepl_pool_max = SLAP_MAX_SYNCREPL_THREADS; - static int backend_init_controls( BackendInfo *bi ) { @@ -95,8 +92,6 @@ int backend_init(void) { int rc = -1; - ldap_pvt_thread_pool_init( &syncrepl_pool, syncrepl_pool_max, 0 ); - if((nBackendInfo != 0) || (backendInfo != NULL)) { /* already initialized */ Debug( LDAP_DEBUG_ANY, @@ -443,8 +438,6 @@ int backend_destroy(void) BackendDB *bd; struct slap_csn_entry *csne; - ldap_pvt_thread_pool_destroy( &syncrepl_pool, 1 ); - /* destroy each backend database */ for( i = 0, bd = backendDB; i < nBackendDB; i++, bd++ ) { diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index ee65e32dc8..7e79c0a28c 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -109,8 +109,6 @@ LDAP_BEGIN_DECL #define SLAP_MAX_WORKER_THREADS (16) -#define SLAP_MAX_SYNCREPL_THREADS (8) - #define SLAP_SB_MAX_INCOMING_DEFAULT ((1<<18) - 1) #define SLAP_SB_MAX_INCOMING_AUTH ((1<<24) - 1)