summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-08 03:59:50 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-08 03:52:18 -0700
commit94d232ec8ab0dbbda643039fb3e41495cae5e7e9 (patch)
treebcb83997f1b21a1789c036039e612dbdb26243c0 /xlators
parent65ac3fdba1b21a103547d80f4446cfdcaf90139b (diff)
protocol/client: send CHILD_UP directly fuse if parent is NULL
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1568 (Fuse init doesn't happen when vol file is changed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1568
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/client/src/client-handshake.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index 01c68e027..d94cb774c 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -364,8 +364,15 @@ client_post_handshake (call_frame_t *frame, xlator_t *this)
protocol_client_reopen (this, fdctx);
}
- parent = this->parents;
+ /* As fuse is not 'parent' of any translator now, triggering its
+ CHILD_UP event is hacky in case client has only client protocol */
+ if (!this->parents && this->ctx && this->ctx->master) {
+ /* send notify to 'ctx->master' if it exists */
+ xlator_notify (this->ctx->master, GF_EVENT_CHILD_UP,
+ this->graph);
+ }
+ parent = this->parents;
while (parent) {
xlator_notify (parent->xlator, GF_EVENT_CHILD_UP,
this);