diff options
author | Pranith K <pranithk@gluster.com> | 2011-03-07 04:38:15 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-03-07 08:01:11 -0800 |
commit | 108de35b1775db82cccaf0bd1b62ccacfb1c61e8 (patch) | |
tree | 348713a9f0781d1c14688c08a21327e5081cf406 | |
parent | 135aca330b0429776125bdd98be4ccd85dcfa715 (diff) |
mgmt/glusterd: fix payload errors
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2492 ([glusterfs-3.1.3qa4]: gluster operations fail)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2492
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c index 0a1a1d3036d..fe97183c4af 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c @@ -1312,6 +1312,9 @@ glusterd3_1_stage_op (call_frame_t *frame, xlator_t *this, if (ret) goto out; + //peerinfo should not be in payload + dict_del (dict, "peerinfo"); + ret = dict_allocate_and_serialize (dict, &req.buf.buf_val, (size_t *)&req.buf.buf_len); @@ -1319,6 +1322,7 @@ glusterd3_1_stage_op (call_frame_t *frame, xlator_t *this, goto out; glusterd_get_uuid (&req.uuid); + req.op = glusterd_op_get_op (); dummy_frame = create_frame (this, this->ctx->pool); if (!dummy_frame) @@ -1361,7 +1365,11 @@ glusterd3_1_commit_op (call_frame_t *frame, xlator_t *this, if (ret) goto out; + //peerinfo should not be in payload + dict_del (dict, "peerinfo"); + glusterd_get_uuid (&req.uuid); + req.op = glusterd_op_get_op (); ret = dict_allocate_and_serialize (dict, &req.buf.buf_val, (size_t *)&req.buf.buf_len); |