diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2018-03-06 15:25:07 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2018-03-06 15:42:26 +0530 |
commit | 8b106204f52b283cdbe7a128c14f851dd54a150c (patch) | |
tree | cb9ef79fe988409482e55d139fb60ad0c4c50bbe /rpc/block_svc_routines.c | |
parent | 305e1c5ffead749fd6ea555b52e46d9e64c9bd55 (diff) |
also other minor compiler errors
Change-Id: I17625008d91740f3ba9efc6e574ec3dcd0b6c85f
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/block_svc_routines.c')
-rw-r--r-- | rpc/block_svc_routines.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c index 149c7f6..78178d3 100644 --- a/rpc/block_svc_routines.c +++ b/rpc/block_svc_routines.c @@ -517,6 +517,7 @@ glusterBlockCallRPC_1(char *host, void *cobj, case MODIFY_TPGC_SRV: case LIST_SRV: case INFO_SRV: + case REPLACE_GET_PORTAL_TPG_SRV: goto out; case REPLACE_SRV: *rpc_sent = TRUE; @@ -1457,6 +1458,12 @@ glusterBlockBuildMinCaps(void *data, operations opt) minCaps[GB_JSON_CAP] = true; } break; + case MODIFY_TPGC_SRV: + case REPLACE_GET_PORTAL_TPG_SRV: + case LIST_SRV: + case INFO_SRV: + case VERSION_SRV: + break; } return minCaps; @@ -2603,7 +2610,6 @@ block_modify_cli_1_svc_st(blockModifyCli *blk, struct svc_req *rqstp) int errCode = 0; char *errMsg = NULL; blockServerDefPtr list = NULL; - size_t i; LOG("mgmt", GB_LOG_DEBUG, @@ -2730,10 +2736,16 @@ block_modify_cli_1_svc_st(blockModifyCli *blk, struct svc_req *rqstp) "for block %s on volume %s", blk->auth_mode, ret, FAILED_REMOTE_AYNC_MODIFY, blk->block_name, info->volume); /* do nothing ? */ + errCode = ret; + goto out; } } - ret = 0; + errCode = 0; + + LOG("mgmt", GB_LOG_DEBUG, + "modify auth cli success, volume=%s blockname=%s auth=%d", + blk->volume, blk->block_name, blk->auth_mode); out: GB_METAUNLOCK(lkfd, blk->volume, ret, errMsg); @@ -3717,7 +3729,6 @@ block_delete_1_svc_st(blockDelete *blk, struct svc_req *rqstp) blockResponse * block_version_1_svc_st(void *data, struct svc_req *rqstp) { - int ret = -1; blockResponse *reply = NULL; if (GB_ALLOC(reply) < 0) { |