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 13:18:42 -0600
commit5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a (patch)
tree02fd4da0e8a4cc24014555f271d3e579b97c5547
parent0d1f300d0e4e41d96f3022c5c80bfcb34507f5b5 (diff)
downloadds-5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a.tar.gz
ds-5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a.tar.xz
ds-5d5ce8ed4a3e37e49f4cc0fb3da17bb2d248d61a.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)