public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: STABLE3 - cman: Allow cman_tool version -r0 to update to an arbitrary version Date: Mon, 19 Jan 2009 14:05:00 -0000 [thread overview] Message-ID: <20090119140256.05DFB12015A@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5e2fdf75cc2d156ec6e0bb91645fccabfdabdaeb Commit: 5e2fdf75cc2d156ec6e0bb91645fccabfdabdaeb Parent: 7ae5969b6d0595378cf5ee85ee998663c17698f7 Author: Christine Caulfield <ccaulfie@redhat.com> AuthorDate: Mon Jan 19 14:01:09 2009 +0000 Committer: Christine Caulfield <ccaulfie@redhat.com> CommitterDate: Mon Jan 19 14:01:09 2009 +0000 cman: Allow cman_tool version -r0 to update to an arbitrary version It's a bit of a nuisance having to know the latest version of cluster.conf. Now you don't! cman_tool version -r0 will cause cman to re-read the configuration and use the version it finds there. Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> --- cman/cman_tool/main.c | 2 +- cman/daemon/commands.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c index 4ed6d72..21b7d72 100644 --- a/cman/cman_tool/main.c +++ b/cman/cman_tool/main.c @@ -662,7 +662,7 @@ static void version(commandline_t *comline) if ((result = cman_get_version(h, &ver))) die("can't get version: %s", cman_error(errno)); - if (!comline->config_version) { + if (!comline->config_version_opt) { printf("%d.%d.%d config %d\n", ver.cv_major, ver.cv_minor, ver.cv_patch, ver.cv_config); goto out; diff --git a/cman/daemon/commands.c b/cman/daemon/commands.c index c1394d8..27e18cd 100644 --- a/cman/daemon/commands.c +++ b/cman/daemon/commands.c @@ -1147,7 +1147,7 @@ static int reread_config(int new_version) } /* Still too old?? */ - if (config_version < wanted_config_version) { + if (new_version && config_version < wanted_config_version) { log_printf(LOG_ERR, "Can't get updated config version %d, config file is version %d.\n", wanted_config_version, config_version); }
reply other threads:[~2009-01-19 14:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090119140256.05DFB12015A@lists.fedorahosted.org \ --to=chrissie@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).