cluster: RHEL6 - config: invalidate ccs_update_schema cache if we received traps/signals

Fabio M. Di Nitto fabbione at fedoraproject.org
Mon Sep 5 13:34:59 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5bdd9f26b7664368a058dad1a76a7b668dd83632
Commit:        5bdd9f26b7664368a058dad1a76a7b668dd83632
Parent:        5a0a299ea95d689d90da1d71aec88753d26efa5f
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Sat Sep 3 11:15:22 2011 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Sep 5 15:34:36 2011 +0200

config: invalidate ccs_update_schema cache if we received traps/signals

Resolves: rhbz#733424

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 config/tools/xml/ccs_update_schema.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/config/tools/xml/ccs_update_schema.in b/config/tools/xml/ccs_update_schema.in
index 03dbb68..d082ed3 100644
--- a/config/tools/xml/ccs_update_schema.in
+++ b/config/tools/xml/ccs_update_schema.in
@@ -64,6 +64,7 @@ export tmpdir
 
 # need to be careful (might have to mask traps on exit)
 cleanup() {
+	[ "$1" != "0" ] && rm -f $vardir/*.cache $vardir/*.hash
 	[ -n "$tmpdir" ] && [ -d "$tmpdir" ] && rm -rf "$tmpdir"
 	rm -f $vardir/rng_update.lock
 	exit $1


More information about the cluster-commits mailing list