diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-31 01:55:58 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-31 09:12:21 -0700 |
commit | 1053294b0a458264075525f08e3144d644c8c010 (patch) | |
tree | 53b8a107d14d6795a0611bb8d96ef9f62cf9ab52 /xlators/cluster/dht | |
parent | bc7d07d8d5eab29741c7e28b7dcb38ce66c101cb (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/dht')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 |
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 35bf180f535..6ae43775ede 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5160,6 +5160,7 @@ dht_notify (xlator_t *this, int event, void *data, ...) subvol = data; conf->gen++; + propagate = 1; break; @@ -5257,7 +5258,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; |