summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/defaults-tmpl.c
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-11-20 17:50:50 +0530
committerNiels de Vos <ndevos@redhat.com>2015-12-01 02:35:02 -0800
commit3c18b186921c51b1a976eea8cd1c19f7113ef74c (patch)
treeead2f93f6872b38c7fe482bdfaa87b43b0d9feee /libglusterfs/src/defaults-tmpl.c
parentffe80877a0eb0eaf2540be95b401623c6d7c722f (diff)
defaults: Add 'GF_EVENT_UPCALL' to default_notify
Fix a regression caused by commit#If7d59d Change-Id: Ib2239b9b0e216302e6c89e21288592d35b8d124b BUG: 1283983 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/12708 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'libglusterfs/src/defaults-tmpl.c')
-rw-r--r--libglusterfs/src/defaults-tmpl.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults-tmpl.c b/libglusterfs/src/defaults-tmpl.c
index 4d83368cc32..dc20917cb56 100644
--- a/libglusterfs/src/defaults-tmpl.c
+++ b/libglusterfs/src/defaults-tmpl.c
@@ -153,6 +153,21 @@ default_notify (xlator_t *this, int32_t event, void *data, ...)
}
}
break;
+ case GF_EVENT_UPCALL:
+ {
+ xlator_list_t *parent = this->parents;
+
+ if (!parent && this->ctx && this->ctx->master)
+ xlator_notify (this->ctx->master, event, data, NULL);
+
+ while (parent) {
+ if (parent->xlator->init_succeeded)
+ xlator_notify (parent->xlator, event,
+ data, NULL);
+ parent = parent->next;
+ }
+ }
+ break;
default:
{
xlator_list_t *parent = this->parents;