summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-07-06 22:08:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-06 21:32:43 -0700
commit41027a22054af821caeb2b47a7b93ff028ecaedf (patch)
tree9383558bd223d3e262105ec8eceebdd00adf56b2 /libglusterfs
parent8d74fe9ba6c3c2f68f71cacd56fad9328b8b0090 (diff)
libglusterfs/defaults - send CHILD_UP notify only to the parent which has been init()ed.
fixes bz# 12 Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/defaults.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c
index ba47ecc8801..ef8104e594a 100644
--- a/libglusterfs/src/defaults.c
+++ b/libglusterfs/src/defaults.c
@@ -1499,7 +1499,9 @@ default_notify (xlator_t *this, int32_t event, void *data, ...)
{
xlator_list_t *parent = this->parents;
while (parent) {
- xlator_notify (parent->xlator, event, this, NULL);
+ if (parent->xlator->ready)
+ xlator_notify (parent->xlator, event,
+ this, NULL);
parent = parent->next;
}
}