diff options
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 2 | ||||
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 576199db137..dae1b9d8a48 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -3874,7 +3874,7 @@ afr_notify (xlator_t *this, int32_t event, "All subvolumes are down. Going offline " "until atleast one of them comes back up."); } else { - event = GF_EVENT_CHILD_MODIFIED; + event = GF_EVENT_SOME_CHILD_DOWN; } priv->last_event[idx] = event; diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 6af55d5d42e..982b155d57c 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -7658,6 +7658,12 @@ dht_notify (xlator_t *this, int event, void *data, ...) break; + case GF_EVENT_SOME_CHILD_DOWN: + subvol = data; + propagate = 1; + + break; + case GF_EVENT_CHILD_DOWN: subvol = data; |