diff options
author | Krishnan Parthasarathi <kp@gluster.com> | 2011-09-07 18:01:41 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-07 06:48:53 -0700 |
commit | a2739b842ba81cbe7128ab91030ff81371ae42d5 (patch) | |
tree | e9f01b35e3ef579c700fd8f14bce4a623181663a | |
parent | c502dcbd144247bf7185b5b4e481a7a3a72b38ed (diff) |
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.c | 5 |
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 7b085e26542..a5938bcd09d 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); |