Pārlūkot izejas kodu

https://bugzilla.redhat.com/show_bug.cgi?id=487425
Resolves: bug 487425
Bug Description: slapd crashes after changelog is moved
Reviewed by: rmeggins
Fix Description: Call clcache_set_config after the global changelog cache pool has been allocated.
Platforms tested: HPUX 11 (PA-RISC 2.0 64-bit)
Flag Day: no
Doc impact: no
<diffs>

Rich Megginson 16 gadi atpakaļ
vecāks
revīzija
e8bc100b89

+ 1 - 0
ldap/servers/plugins/replication/cl5_api.c

@@ -560,6 +560,7 @@ int cl5Open (const char *dir, const CL5DBConfig *config)
 	else
 	{
 		s_cl5Desc.dbState = CL5_STATE_OPEN;	
+		clcache_set_config((CL5DBConfig *)config);
 	}
 
 done:;	

+ 0 - 2
ldap/servers/plugins/replication/cl5_config.c

@@ -907,8 +907,6 @@ static void changelog5_extract_config(Slapi_Entry* entry, changelog5Config *conf
 		}
 		slapi_ch_free_string(&arg);
 	}
-	
-	clcache_set_config(&config->dbconfig);
 }
 
 static void replace_bslash (char *dir)