diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-09-15 23:53:57 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-16 04:22:49 -0700 |
commit | 6fe0be9ffdd11789aa7567183ee415b121a85734 (patch) | |
tree | a9a3dc3fd3c3586f23d4526b687974f1c5e7e60f /xlators | |
parent | 0e2c2f46ddc36ccedeea8b42f7789f09224b5c9f (diff) |
check if the brick to be added is online
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1603 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1603
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 715f3c800..036969a81 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -1482,7 +1482,7 @@ brick_val: err_ret = 1; goto out; } - if ((!peerinfo->connected) && + if ((!peerinfo->connected) || (peerinfo->state.state != GD_FRIEND_STATE_BEFRIENDED)) { snprintf(err_str, 1048, "Host %s not connected", brickinfo->hostname); |