Skip to content

Commit

Permalink
cluster/afr: Sending subvol up/down events when subvol comes up or go…
Browse files Browse the repository at this point in the history
…es down

> BUG: 1493539

(cherry picked from commit 3bbb4fe)

Change-Id: I6580351b245d5f868e9ddc6a4eb4dd6afa3bb6ec
BUG: 1492066
Signed-off-by: karthik-us <ksubrahm@redhat.com>
  • Loading branch information
karthik-us authored and thotz committed Oct 6, 2017
1 parent 0aa823e commit 94faf8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xlators/cluster/afr/src/afr-common.c
Expand Up @@ -4923,6 +4923,7 @@ __afr_handle_child_up_event (xlator_t *this, xlator_t *child_xlator,
"Subvolume '%s' came back up; "
"going online.",
child_xlator->name);
gf_event (EVENT_AFR_SUBVOL_UP, "subvol=%s", this->name);
} else {
*event = GF_EVENT_SOME_DESCENDENT_UP;
}
Expand Down Expand Up @@ -4999,6 +5000,7 @@ __afr_handle_child_down_event (xlator_t *this, xlator_t *child_xlator,
"All subvolumes are down. Going "
"offline until atleast one of them "
"comes back up.");
gf_event (EVENT_AFR_SUBVOLS_DOWN, "subvol=%s", this->name);
} else {
*event = GF_EVENT_SOME_DESCENDENT_DOWN;
}
Expand Down

0 comments on commit 94faf8c

Please sign in to comment.