From 5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 25 Aug 2009 11:09:52 -0600 Subject: 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 --- ldap/servers/plugins/replication/cl5_api.c | 1 + ldap/servers/plugins/replication/cl5_config.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c index 94b80fda..364b292d 100644 --- a/ldap/servers/plugins/replication/cl5_api.c +++ b/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:; diff --git a/ldap/servers/plugins/replication/cl5_config.c b/ldap/servers/plugins/replication/cl5_config.c index 7fb11a4d..adbe2d01 100644 --- a/ldap/servers/plugins/replication/cl5_config.c +++ b/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) -- cgit