From: jbrassow@sourceware.org <jbrassow@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/cmirror/src functions.c
Date: 28 Nov 2007 20:34:24 -0000 [thread overview]
Message-ID: <20071128203424.23254.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at sourceware.org 2007-11-28 20:34:22
Modified files:
cmirror/src : functions.c
Log message:
- Bug 387601
- If the sync bit is already set, do not increment the sync_count. This
can lead to a sync_count > the number of regions.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/functions.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.4&r2=1.1.2.5
--- cluster/cmirror/src/Attic/functions.c 2007/11/08 22:16:53 1.1.2.4
+++ cluster/cmirror/src/Attic/functions.c 2007/11/28 20:34:22 1.1.2.5
@@ -1147,8 +1147,13 @@
lc->recovering_region = (uint64_t)-1;
if (pkg->in_sync) {
- log_set_bit(lc, lc->sync_bits, pkg->region);
- lc->sync_count++;
+ if (log_test_bit(lc->sync_bits, pkg->region)) {
+ LOG_PRINT(" Region already in-sync: %llu",
+ pkg->region);
+ } else {
+ log_set_bit(lc, lc->sync_bits, pkg->region);
+ lc->sync_count++;
+ }
} else if (log_test_bit(lc->sync_bits, pkg->region)) {
lc->sync_count--;
log_clear_bit(lc, lc->sync_bits, pkg->region);
next reply other threads:[~2007-11-28 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-28 20:34 jbrassow [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-12-06 22:12 [Cluster-devel] cluster/cmirror/src functions.c jbrassow
2008-02-13 15:06 jbrassow
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=20071128203424.23254.qmail@sourceware.org \
--to=jbrassow@sourceware.org \
/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: link
Be 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 NNTP newsgroup(s).