RHEL5 - clogd: Fix for bug 463772 - invaild copy percent

Jonathan Brassow jbrassow@fedoraproject.org
Tue Sep 30 20:45:00 GMT 2008


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a9886d37c2981a39a422a649fedff8953518d123
Commit:        a9886d37c2981a39a422a649fedff8953518d123
Parent:        a5af1f999f1b36a46bcd83f71856852be47a85ac
Author:        Jonathan Brassow <jbrassow@redhat.com>
AuthorDate:    Tue Sep 30 09:59:54 2008 -0500
Committer:     Jonathan Brassow <jbrassow@redhat.com>
CommitterDate: Tue Sep 30 09:59:54 2008 -0500

clogd:  Fix for bug 463772 - invaild copy percent

A goto statement was placed to far down the function, so
when corelog+nosync option was used to create a mirror, it
would skip over some bit initialization work.
---
 cmirror/src/functions.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cmirror/src/functions.c b/cmirror/src/functions.c
index 6921bc0..491d46d 100644
--- a/cmirror/src/functions.c
+++ b/cmirror/src/functions.c
@@ -748,6 +748,7 @@ static int clog_resume(struct clog_tfr *tfr)
 		break;
 	}
 
+out:
 	/* If mirror has grown, set bits appropriately */
 	if (lc->sync == NOSYNC)
 		for (i = lc->disk_nr_regions; i < lc->region_count; i++)
@@ -771,7 +772,7 @@ static int clog_resume(struct clog_tfr *tfr)
 			LOG_DBG("Disk log initialized");
 		lc->touched = 0;
 	}
-out:
+
 	lc->sync_count = count_bits32(lc->sync_bits, lc->bitset_uint32_count);
 	LOG_DBG("[%s] Initial sync_count = %llu",
 		SHORT_UUID(lc->uuid), (unsigned long long)lc->sync_count);



More information about the Cluster-cvs mailing list