diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index a7ff9d70ab9..b52a1d287ef 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -6187,6 +6187,8 @@ glusterd_brick_start (glusterd_volinfo_t *volinfo,                                  if (sys_access (pidfile , R_OK) == 0) {                                          sys_unlink (pidfile);                                  } +                                if (only_connect) +                                        return 0;                                  goto run;                          }                          GF_FREE (brickpath); @@ -6201,6 +6203,8 @@ glusterd_brick_start (glusterd_volinfo_t *volinfo,                                  if (sys_access (pidfile , R_OK) == 0) {                                          sys_unlink (pidfile);                                  } +                                if (only_connect) +                                        return 0;                                  goto run;                          }                  }  | 
