From 528dde957c809014aee40737d01cb667e858e0c9 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Wed, 29 Sep 2010 04:49:53 +0000 Subject: glusterd: make sure init is not called when there is no topology change Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 1159 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159 --- xlators/cluster/afr/src/afr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index a5906550d52..09094bdbe58 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -250,7 +250,7 @@ reconfigure (xlator_t *this, dict_t *options) read_ret = dict_get_str (options, "read-subvolume", &read_subvol); - if (read_ret == -1) + if (read_ret < 0) goto next;// No need to traverse, hence set the next option trav = this->children; -- cgit