diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-31 03:09:27 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-31 09:11:25 -0700 |
commit | 761bc05f58fcadd7c6e861eab4619b61fcac0eed (patch) | |
tree | 542aa0aaa34161ed4fe281c22482ad29b31e5254 | |
parent | 5c81c9dce46b454323e2b3241b7fe2d58f805dc0 (diff) |
mgmt/glusterd: Start nfs after all bricks are started on glusterd re-start
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2941 (glusterd breaks when starting ~100 volumes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2941
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index cb38ddf88f6..db82e5ed80f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1932,6 +1932,7 @@ glusterd_restart_bricks (glusterd_conf_t *conf) glusterd_volinfo_t *volinfo = NULL; glusterd_brickinfo_t *brickinfo = NULL; int ret = -1; + gf_boolean_t start_nfs = _gf_false; GF_ASSERT (conf); @@ -1942,9 +1943,11 @@ glusterd_restart_bricks (glusterd_conf_t *conf) brick_list) { glusterd_brick_start (volinfo, brickinfo); } - glusterd_check_generate_start_nfs (volinfo); + start_nfs = _gf_true; } } + if (start_nfs) + glusterd_check_generate_start_nfs (volinfo); return ret; } |