diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-09-23 09:18:37 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-23 07:58:16 -0700 |
commit | c5a5fea9e6a1f1709e6826c1eea89dfd25cc496b (patch) | |
tree | 0f8abfa9c32e17c08fd33666183f0cc54118570f /xlators/mgmt/glusterd/src/glusterd-pmap.c | |
parent | fa3ca3c61fbd7ad95f57f0522624396b8f05ecf6 (diff) |
mgmt/glusterd: Misc fixes to pump / cli / glusterd wrt replace brick.v3.1.0qa30v3.1.0beta
Patches from Vijay and Shishir have been pulled in into this one big patch.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1235 (Bug for all pump/migrate commits)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-pmap.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-pmap.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c index 1e72b694b5e..cae9341f0db 100644 --- a/xlators/mgmt/glusterd/src/glusterd-pmap.c +++ b/xlators/mgmt/glusterd/src/glusterd-pmap.c @@ -367,7 +367,14 @@ fail: return 0; } +static int +glusterd_brick_update_signin (glusterd_brickinfo_t *brickinfo, + gf_boolean_t value) +{ + brickinfo->signed_in = value; + return 0; +} int gluster_pmap_signup (rpcsvc_request_t *req) @@ -393,7 +400,6 @@ fail: return 0; } - int gluster_pmap_signin (rpcsvc_request_t *req) { @@ -421,6 +427,9 @@ fail: if (args.brick) free (args.brick);//malloced by xdr + if (!ret) + glusterd_brick_update_signin (brickinfo, _gf_true); + return 0; } @@ -454,6 +463,9 @@ fail: if (args.brick) free (args.brick);//malloced by xdr + if (!ret) + glusterd_brick_update_signin (brickinfo, _gf_false); + return 0; } |