From 56b8ed7592e53226e356bced53147d365c5024e6 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Fri, 17 Jan 2014 05:51:17 +0000 Subject: glusterd/vol-locks: Dict_ref while adding req_ctx->dict to txn_opinfos Introducing a wrapper function glusterd_txn_opinfo_init(), to initialize the opinfo to be set in the txn_id engine. Removed glusterd_op_fini_ctx() as the txn opinfo should only be cleared by glusterd_clear_txn_opinfo(). Change-Id: I17e85a162d6a3bca79941f8603d0c2b579f0d194 Signed-off-by: Avra Sengupta --- xlators/mgmt/glusterd/src/glusterd-syncop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c index 2b2a2ec1c..fe3cb1f33 100644 --- a/xlators/mgmt/glusterd/src/glusterd-syncop.c +++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c @@ -1543,7 +1543,7 @@ gd_sync_task_begin (dict_t *op_ctx, rpcsvc_request_t * req) local_locking_done: /* Save opinfo for this transaction with the transaction id */ - txn_opinfo.op = op; + glusterd_txn_opinfo_init (&txn_opinfo, NULL, &op, NULL, NULL); ret = glusterd_set_txn_opinfo (txn_id, &txn_opinfo); if (ret) gf_log (this->name, GF_LOG_ERROR, -- cgit