summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-04-01 10:10:41 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-04-04 02:33:44 +0000
commitc7e03a2caae5a776ec55443f15489de8195b9817 (patch)
tree9911fa2c04af635a27b976dfbc396ddf0d53d56b /xlators/mgmt/glusterd/src/glusterd-handler.c
parent089351f3d80d37cf2d46f05211191bef5232c12c (diff)
glusterd: fix txn_opinfo memory leak
For transactions where there's no volname involved (eg : gluster v status), the originator node initiates with staging phase and what that means in op-sm there's no unlock event triggered which resulted into a txn_opinfo dictionary leak. Credits : cynthia.zhou@nokia-sbell.com Change-Id: I92fffbc2e8e1b010f489060f461be78aa2b86615 Fixes: bz#1550339 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 26115a26b35..d4e0d03b512 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1073,6 +1073,7 @@ __glusterd_handle_stage_op (rpcsvc_request_t *req)
glusterd_txn_opinfo_init (&txn_op_info, &state, &op_req.op,
req_ctx->dict, req);
+ txn_op_info.skip_locking = _gf_true;
ret = glusterd_set_txn_opinfo (txn_id, &txn_op_info);
if (ret) {
gf_msg (this->name, GF_LOG_ERROR, 0,