public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* master - ccs: implement config reload in legacy ccs
@ 2008-10-27 5:13 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2008-10-27 5:13 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9c9359dc14902a17cb44630a6909085605798d03
Commit: 9c9359dc14902a17cb44630a6909085605798d03
Parent: 1741121d6d32c5003e08f31e38b29795a7c7fdd8
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon Oct 27 06:11:13 2008 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon Oct 27 06:11:13 2008 +0100
ccs: implement config reload in legacy ccs
add reload operation to legacy ccsais config plugin.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
config/plugins/ccsais/config.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/config/plugins/ccsais/config.c b/config/plugins/ccsais/config.c
index d1e9fa6..6ee1c0b 100644
--- a/config/plugins/ccsais/config.c
+++ b/config/plugins/ccsais/config.c
@@ -20,6 +20,7 @@
#define CONFIG_NAME_PATH "/cluster/@name"
static int ccs_readconfig(struct objdb_iface_ver0 *objdb, char **error_string);
+static int ccs_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, char **error_string);
static int init_config(struct objdb_iface_ver0 *objdb, char *error_string);
static char error_reason[1024];
@@ -28,7 +29,8 @@ static char error_reason[1024];
*/
static struct config_iface_ver0 ccsconfig_iface_ver0 = {
- .config_readconfig = ccs_readconfig
+ .config_readconfig = ccs_readconfig,
+ .config_reloadconfig = ccs_reloadconfig
};
static struct lcr_iface ifaces_ver0[2] = {
@@ -176,6 +178,11 @@ static int read_config_for(int ccs_fd, struct objdb_iface_ver0 *objdb, unsigned
return gotcount;
}
+static int ccs_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, char **error_string)
+{
+ return init_config(objdb, error_reason);
+}
+
static int ccs_readconfig(struct objdb_iface_ver0 *objdb, char **error_string)
{
int ret;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-27 5:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 5:13 master - ccs: implement config reload in legacy ccs Fabio M. Di Nitto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).