diff options
author | Amar Tumballi <amar@gluster.com> | 2011-02-22 05:00:37 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-22 09:21:47 -0800 |
commit | 46279693027230d5454ad98c267d93d5139e19af (patch) | |
tree | 3bd596d4c4f68f8a74ca6218526c493c70ac8c5f /libglusterfs | |
parent | d437dd91bf167675615d7c7c2f99abbed2d899a1 (diff) |
send the CHILD_DOWN event also to fuse
and start the fuse thread in CHILD_DOWN event too.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2005 (Mounting Gluster volume with RO bricks hangs)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2005
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/defaults.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index 00f84694a06..ec41ce92626 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -1219,10 +1219,11 @@ 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_DOWN: case GF_EVENT_CHILD_UP: { xlator_list_t *parent = this->parents; - /* Handle the case of CHILD_UP specially, send it to fuse */ + /* Handle case of CHILD_* event specially, send it to fuse */ if (!parent && this->ctx && this->ctx->master) xlator_notify (this->ctx->master, event, this->graph, NULL); @@ -1234,7 +1235,6 @@ default_notify (xlator_t *this, int32_t event, void *data, ...) } } break; - case GF_EVENT_CHILD_DOWN: default: { xlator_list_t *parent = this->parents; |