summaryrefslogtreecommitdiff
path: root/net/openldap22-server/files/patch-servers::slapd::backend.c
blob: 663f1248838daf5f0a3ef29106cf0275fb8cd9b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- servers/slapd/backend.c	Mon Oct  6 16:57:29 2003
+++ servers/slapd/backend.c	Sun Oct 19 15:33:56 2003
@@ -244,8 +244,6 @@
 	int i;
 	int rc = 0;
 
-	init_syncrepl();
-
 	if( ! ( nBackendDB > 0 ) ) {
 		/* no databases */
 #ifdef NEW_LOGGING
@@ -377,6 +375,7 @@
 		if ( backendDB[i].syncinfo != NULL ) {
 			syncinfo_t *si = ( syncinfo_t * ) backendDB[i].syncinfo;
 			si->be = &backendDB[i];
+			init_syncrepl(si);
 			ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
 			ldap_pvt_runqueue_insert( &syncrepl_rq, si->interval,
 							do_syncrepl, (void *) backendDB[i].syncinfo );