diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-27 01:13:40 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-30 04:49:12 -0700 |
commit | 865c74963525bba325c6262a14e37764d1bc0a8a (patch) | |
tree | 4240fe39456e1294744a1cf3167f924da8791caa /xlators | |
parent | 493274b4051beca13f7153bc583cb60661a546c0 (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')
-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 e9d1f0d5a..35b273e88 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5037,6 +5037,7 @@ dht_notify (xlator_t *this, int event, void *data, ...) subvol = data; conf->gen++; + propagate = 1; break; @@ -5134,7 +5135,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; |