diff options
Diffstat (limited to 'xlators/protocol/server/src/server.c')
| -rw-r--r-- | xlators/protocol/server/src/server.c | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 55b30180032..b4c3c61a583 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -1186,6 +1186,7 @@ notify (xlator_t *this, int32_t event, void *data, ...)          int32_t          val          = 0;          dict_t           *dict        = NULL;          dict_t           *output      = NULL; +        server_conf_t    *conf        = NULL;          va_list          ap;          dict = data; @@ -1206,6 +1207,16 @@ notify (xlator_t *this, int32_t event, void *data, ...)                  }                  break;          } + +        case GF_EVENT_PARENT_UP: +        { +                conf = this->private; + +                conf->parent_up = _gf_true; + +                /* fall through and notify the event to children */ +        } +          default:                  default_notify (this, event, data);                  break;  | 
