From 108de35b1775db82cccaf0bd1b62ccacfb1c61e8 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 7 Mar 2011 04:38:15 +0000 Subject: mgmt/glusterd: fix payload errors Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2492 ([glusterfs-3.1.3qa4]: gluster operations fail) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2492 --- xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit