|
|
21ab4e |
From e77d7c0db17b7380b6344c7ec5835f210ed38c84 Mon Sep 17 00:00:00 2001
|
|
|
21ab4e |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
21ab4e |
Date: Fri, 30 Jun 2017 20:17:20 +0530
|
|
|
21ab4e |
Subject: [PATCH 554/557] svs:implement CHILD UP notify in snapview-server
|
|
|
21ab4e |
|
|
|
21ab4e |
protocol/server expects a child up event to successfully
|
|
|
21ab4e |
configure the graph. In the actual brick graph, posix is
|
|
|
21ab4e |
the one who decide to initiate the notification to the parent
|
|
|
21ab4e |
that the child is up.
|
|
|
21ab4e |
|
|
|
21ab4e |
But in snapd graph there is no posix, hence the child up
|
|
|
21ab4e |
notification was missing.
|
|
|
21ab4e |
|
|
|
21ab4e |
Ideally each xlator should initiate the child up event whenever
|
|
|
21ab4e |
it see's that this is the last child xlator.
|
|
|
21ab4e |
|
|
|
21ab4e |
back port of>
|
|
|
21ab4e |
>Change-Id: Icccdb9fe920c265cadaf9f91c040a0831b4b78fc
|
|
|
21ab4e |
>BUG: 1467513
|
|
|
21ab4e |
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
21ab4e |
>Reviewed-on: https://review.gluster.org/17689
|
|
|
21ab4e |
>CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
21ab4e |
>Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
21ab4e |
>Reviewed-by: Amar Tumballi <amarts@redhat.com>
|
|
|
21ab4e |
>Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
|
|
|
21ab4e |
|
|
|
21ab4e |
Change-Id: Icccdb9fe920c265cadaf9f91c040a0831b4b78fc
|
|
|
21ab4e |
BUG: 1191480
|
|
|
21ab4e |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
21ab4e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/111806
|
|
|
21ab4e |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
21ab4e |
---
|
|
|
21ab4e |
xlators/features/snapview-server/src/snapview-server.c | 15 +++++++++++++++
|
|
|
21ab4e |
1 file changed, 15 insertions(+)
|
|
|
21ab4e |
|
|
|
21ab4e |
diff --git a/xlators/features/snapview-server/src/snapview-server.c b/xlators/features/snapview-server/src/snapview-server.c
|
|
|
21ab4e |
index 72cfc90..e7c257a 100644
|
|
|
21ab4e |
--- a/xlators/features/snapview-server/src/snapview-server.c
|
|
|
21ab4e |
+++ b/xlators/features/snapview-server/src/snapview-server.c
|
|
|
21ab4e |
@@ -2201,6 +2201,21 @@ out:
|
|
|
21ab4e |
return 0;
|
|
|
21ab4e |
}
|
|
|
21ab4e |
|
|
|
21ab4e |
+int32_t
|
|
|
21ab4e |
+notify (xlator_t *this, int32_t event, void *data, ...) {
|
|
|
21ab4e |
+ switch (event) {
|
|
|
21ab4e |
+
|
|
|
21ab4e |
+ case GF_EVENT_PARENT_UP:
|
|
|
21ab4e |
+ {
|
|
|
21ab4e |
+ /* Tell the parent that snapview-server xlator is up */
|
|
|
21ab4e |
+ default_notify (this, GF_EVENT_CHILD_UP, data);
|
|
|
21ab4e |
+ }
|
|
|
21ab4e |
+ break;
|
|
|
21ab4e |
+ default:
|
|
|
21ab4e |
+ break;
|
|
|
21ab4e |
+ }
|
|
|
21ab4e |
+ return 0;
|
|
|
21ab4e |
+}
|
|
|
21ab4e |
|
|
|
21ab4e |
int32_t
|
|
|
21ab4e |
mem_acct_init (xlator_t *this)
|
|
|
21ab4e |
--
|
|
|
21ab4e |
1.8.3.1
|
|
|
21ab4e |
|