summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2014-01-17 05:51:17 +0000
committerAvra Sengupta <asengupt@redhat.com>2014-01-21 02:09:28 +0000
commit56b8ed7592e53226e356bced53147d365c5024e6 (patch)
treed66b54d2fe8fa8008716c08656f57559a82130ba /xlators/mgmt/glusterd/src/glusterd.c
parent44be8c36ac764a652b8575b0e3115c0b88c1c50f (diff)
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 <asengupt@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 42fd8a7..c2806bd 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -1331,7 +1331,7 @@ init (xlator_t *this)
glusterd_op_sm_init ();
glusterd_opinfo_init ();
glusterd_vol_lock_init ();
- glusterd_txn_opinfo_init ();
+ glusterd_txn_opinfo_dict_init ();
ret = glusterd_sm_tr_log_init (&conf->op_sm_log,
glusterd_op_sm_state_name_get,
glusterd_op_sm_event_name_get,
@@ -1452,7 +1452,7 @@ fini (xlator_t *this)
gf_store_handle_destroy (conf->handle);
glusterd_sm_tr_log_delete (&conf->op_sm_log);
glusterd_vol_lock_fini ();
- glusterd_txn_opinfo_fini ();
+ glusterd_txn_opinfo_dict_fini ();
GF_FREE (conf);
this->private = NULL;