public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - clogd: Fix for bug 463772 - invaild copy percent
@ 2008-09-30 20:45 Jonathan Brassow
0 siblings, 0 replies; only message in thread
From: Jonathan Brassow @ 2008-09-30 20:45 UTC (permalink / raw)
To: cluster-cvs-relay
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-30 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 20:45 RHEL5 - clogd: Fix for bug 463772 - invaild copy percent Jonathan Brassow
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).