From d91f3981b0d80161e985fd1038c3524ac82d8d8a Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 31 May 2011 01:54:55 +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 83ec81ff3..d4b5a7211 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; -- cgit