cluster/group/daemon app.c cpg.c gd_internal.h
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2007-01-05 18:49:00
Modified files:
group/daemon : app.c cpg.c gd_internal.h
Log message:
groupd creates uint32 global id's for each group. It doesn't use them itself, but provides them to each registered app to use if it wants. (The dlm and gfs each use the global id in messages to distinguish between different lockspaces/fs's.) groupd's method of creating these gid's (local counter | local nodeid) can result in duplicate gid's in the cluster given a somewhat uncommon sequence of events.
bz 221629
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.53&r2=1.54
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/cpg.c.diff?cvsroot=cluster&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/gd_internal.h.diff?cvsroot=cluster&r1=1.45&r2=1.46
group/daemon/app.c +2 -0
@@ -21,6 +21,8 @@return "recover" ;case MSG_APP_INTERNAL :return "internal" ; +case MSG_GLOBAL_ID : +return "global_id" ; }return "unknown" ; }
group/daemon/cpg.c +68 -0
96 lines not on this page · raw message
group/daemon/gd_internal.h +1 -0
@@ -189,6 +189,7 @@#define MSG_APP_STARTED 2#define MSG_APP_RECOVER 3#define MSG_APP_INTERNAL 4 +#define MSG_GLOBAL_ID 5#define MSG_VER_MAJOR 1#define MSG_VER_MINOR 0