summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-05-31 01:54:55 +0000
committerAnand Avati <avati@gluster.com>2011-05-31 09:11:04 -0700
commitd91f3981b0d80161e985fd1038c3524ac82d8d8a (patch)
tree7526f43d4cda75415997b4bb250f6c4c64310115 /xlators/cluster
parenta5105cdab107240465838ab5e40fae74baea4c5b (diff)
cluster/dht: notify should succeed when waiting for all subvols first event
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2870 (Inconsistent xattr values when creating bricks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2870
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 83ec81ff342..d4b5a7211d0 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -5054,6 +5054,7 @@ dht_notify (xlator_t *this, int event, void *data, ...)
subvol = data;
conf->gen++;
+ propagate = 1;
break;
@@ -5145,7 +5146,8 @@ dht_notify (xlator_t *this, int event, void *data, ...)
}
}
- if (propagate || event == GF_EVENT_CHILD_MODIFIED)
+ ret = 0;
+ if (propagate)
ret = default_notify (this, event, data);
return ret;