diff options
Diffstat (limited to 'libglusterfs/src/defaults-tmpl.c')
-rw-r--r-- | libglusterfs/src/defaults-tmpl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libglusterfs/src/defaults-tmpl.c b/libglusterfs/src/defaults-tmpl.c index 2ce5ec7c685..bdb30d4872c 100644 --- a/libglusterfs/src/defaults-tmpl.c +++ b/libglusterfs/src/defaults-tmpl.c @@ -124,13 +124,18 @@ int default_notify(xlator_t *this, int32_t event, void *data, ...) { GF_UNUSED int ret = 0; + xlator_t *victim = data; + switch (event) { case GF_EVENT_PARENT_UP: case GF_EVENT_PARENT_DOWN: { xlator_list_t *list = this->children; while (list) { - xlator_notify(list->xlator, event, this); + if (victim && victim->cleanup_starting) + xlator_notify(list->xlator, event, victim); + else + xlator_notify(list->xlator, event, this); list = list->next; } } break; |