svs:implement CHILD UP notify in snapview-server
protocol/server expects a child up event to successfully configure the graph. In the actual brick graph, posix is the one who decide to initiate the notification to the parent that the child is up. But in snapd graph there is no posix, hence the child up notification was missing. Ideally each xlator should initiate the child up event whenever it see's that this is the last child xlator. Change-Id: Icccdb9fe920c265cadaf9f91c040a0831b4b78fc BUG: 1467513 Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com> Reviewed-on: https://review.gluster.org/17689 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
This commit is contained in:
parent
028d82b8a2
commit
ecd92d42bb
@ -2180,6 +2180,21 @@ out:
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t
|
||||
notify (xlator_t *this, int32_t event, void *data, ...) {
|
||||
switch (event) {
|
||||
|
||||
case GF_EVENT_PARENT_UP:
|
||||
{
|
||||
/* Tell the parent that snapview-server xlator is up */
|
||||
default_notify (this, GF_EVENT_CHILD_UP, data);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t
|
||||
mem_acct_init (xlator_t *this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user