public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: teigland@sourceware.org To: cluster-cvs@sources.redhat.com Subject: cluster/cman-kernel/src sm_message.c Date: Thu, 21 Sep 2006 15:46:00 -0000 [thread overview] Message-ID: <20060921154654.14081.qmail@sourceware.org> (raw) CVSROOT: /cvs/cluster Module name: cluster Branch: STABLE Changes by: teigland@sourceware.org 2006-09-21 15:46:54 Modified files: cman-kernel/src: sm_message.c Log message: Before choosing a new global id for a new group, a node discovers what the current max group id seen by any node in the cluster is and picks new=max+1. The problem is when two nodes do this in parallel for two different new groups (that are at the same level) and end up assigning the same global id to the two different groups. To fix this, we have a node take this max group id and add its own nodeid to it, so new=max+our_nodeid. This is similar to designating some of the id bits to be the nodeid of the node creating the group, but that method would break backward compatibility. bz 206193 Also, if we reach the max value of the global id counter (0xFFFFFF), then print a message and refuse to go ahead forming the group. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman-kernel/src/sm_message.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.4.8.1&r2=1.4.8.2
next reply other threads:[~2006-09-21 15:46 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-21 15:46 teigland [this message] 2006-12-01 20:40 teigland 2006-12-01 20:43 teigland 2007-08-14 17:05 teigland 2007-10-02 20:40 teigland
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=20060921154654.14081.qmail@sourceware.org \ --to=teigland@sourceware.org \ --cc=cluster-cvs@sources.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).