summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kp@gluster.com>2011-09-07 18:01:41 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-07 06:48:53 -0700
commita2739b842ba81cbe7128ab91030ff81371ae42d5 (patch)
treee9f01b35e3ef579c700fd8f14bce4a623181663a
parentc502dcbd144247bf7185b5b4e481a7a3a72b38ed (diff)
glusterd: rejected peer needs to handle restore differently.v3.1.7qa4v3.1.7
Change-Id: I3e71461c5a8c5b0d24006f24ad762bb4689ac341 BUG: 3432 Reviewed-on: http://review.gluster.com/365 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 7b085e2..a5938bc 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1780,7 +1780,10 @@ glusterd_store_retrieve_peers (xlator_t *this)
(void) glusterd_store_iter_destroy (iter);
- args.mode = GD_MODE_SWITCH_ON;
+ if (state == GD_FRIEND_STATE_REJECTED)
+ args.mode = GD_MODE_ON;
+ else
+ args.mode = GD_MODE_SWITCH_ON;
ret = glusterd_friend_add (hostname, 0, state, &uuid,
NULL, &peerinfo, 1, &args);