From a144f2ca40d43a6ee3a50802fe1e8d1eda7a53b7 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 4 Feb 2011 21:43:19 +0000 Subject: core: have framework for GF_EVENT_CHILD_MODIFIED notifcation event If anything changes anywhere in the graph, all xlators know that something has changed. Previously dht and afr would mask certain events from propagating up. Now they forward GF_EVENT_CHILD_MODIFIED event in those situations Signed-off-by: Anand Avati Signed-off-by: Anand V. Avati BUG: 2450 (scalability enhancements) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2450 --- libglusterfs/src/defaults.c | 1 + libglusterfs/src/glusterfs.h | 1 + 2 files changed, 2 insertions(+) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index 718afeb9a..00f84694a 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -1218,6 +1218,7 @@ default_notify (xlator_t *this, int32_t event, void *data, ...) } break; case GF_EVENT_CHILD_CONNECTING: + case GF_EVENT_CHILD_MODIFIED: case GF_EVENT_CHILD_UP: { xlator_list_t *parent = this->parents; diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index a995d4ebf..aaf00c311 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -332,6 +332,7 @@ typedef enum { GF_EVENT_CHILD_UP, GF_EVENT_CHILD_DOWN, GF_EVENT_CHILD_CONNECTING, + GF_EVENT_CHILD_MODIFIED, GF_EVENT_TRANSPORT_CLEANUP, GF_EVENT_TRANSPORT_CONNECTED, GF_EVENT_VOLFILE_MODIFIED, -- cgit