diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-31 01:58:17 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-31 09:12:42 -0700 |
commit | 273d05313d210bb0500b5d0f572cc751f067d7da (patch) | |
tree | 39980ba6fe6e1b44edd6044ce5da500313e47bb6 | |
parent | e7a8ba1eaf5ee55bc0a63d97992e9adc1a87889e (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 ad2b7dde8..beb7b0d3f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -2379,6 +2379,7 @@ glusterd_restart_bricks (glusterd_conf_t *conf) glusterd_volinfo_t *volinfo = NULL; glusterd_brickinfo_t *brickinfo = NULL; int ret = 0; + gf_boolean_t start_nfs = _gf_false; GF_ASSERT (conf); @@ -2389,9 +2390,11 @@ glusterd_restart_bricks (glusterd_conf_t *conf) brick_list) { glusterd_brick_start (volinfo, brickinfo); } - glusterd_check_generate_start_nfs (); + start_nfs = _gf_true; } } + if (start_nfs) + glusterd_check_generate_start_nfs (); return ret; } |