diff options
Diffstat (limited to 'libglusterfs/src/defaults.c')
| -rw-r--r-- | libglusterfs/src/defaults.c | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index 599f9477dca..a4f8f924b17 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -2287,6 +2287,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;  | 
