From 1053294b0a458264075525f08e3144d644c8c010 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 31 May 2011 01:55:58 +0000 Subject: cluster/dht: notify should succeed when waiting for all subvols first event Signed-off-by: Pranith Kumar K Signed-off-by: Anand Avati BUG: 2870 (Inconsistent xattr values when creating bricks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2870 --- xlators/cluster/dht/src/dht-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 35bf180f5..6ae43775e 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; -- cgit