summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2009-08-25 11:09:52 -0600
committerRich Megginson <rmeggins@redhat.com>2009-08-25 11:09:52 -0600
commite8bc100b891e9e9d5a446394058af5f6de2e9b3e (patch)
tree7885c7245bc20aede087af43c3e33a2c72da80d2
parent132f46e98c2a6bdaf1248952c3bf90f2d32fff08 (diff)
downloadds-e8bc100b891e9e9d5a446394058af5f6de2e9b3e.tar.gz
ds-e8bc100b891e9e9d5a446394058af5f6de2e9b3e.tar.xz
ds-e8bc100b891e9e9d5a446394058af5f6de2e9b3e.zip
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>
-rw-r--r--ldap/servers/plugins/replication/cl5_api.c1
-rw-r--r--ldap/servers/plugins/replication/cl5_config.c2
2 files changed, 1 insertions, 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)