diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index d35ca8dda09..d5002dfe1f1 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -1743,13 +1743,12 @@ init (xlator_t *this)          if (ret < 0)                  goto out; -        /* If there are no 'friends', this would be the best time to -         * spawn process/bricks that may need (re)starting since last -         * time (this) glusterd was up.*/ - -        if (cds_list_empty (&conf->peers)) { +        /* If the peer count is less than 2 then this would be the best time to +         * spawn process/bricks that may need (re)starting since last time +         * (this) glusterd was up. */ +        if (glusterd_get_peers_count () < 2)                  glusterd_launch_synctask (glusterd_spawn_daemons, NULL); -        } +          ret = glusterd_options_init (this);          if (ret < 0)                  goto out;  | 
