diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-syncop.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c index bca8557d3a2..68d10e58e7f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-syncop.c +++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c @@ -1075,23 +1075,6 @@ gd_build_local_xaction_peers_list (struct list_head *peers, return npeers; } -void -gd_cleanup_local_xaction_peers_list (struct list_head *xact_peers) -{ - GF_ASSERT (xact_peers); - - if (list_empty (xact_peers)) - return; - - glusterd_local_peers_t *local_peers = NULL; - - list_for_each_entry (local_peers, xact_peers, op_peers_list) { - GF_FREE (local_peers); - /* local_peers->peerinfo need not be freed because it does not - * ownership of peerinfo, but merely refer it */ - } -} - int gd_lock_op_phase (glusterd_conf_t *conf, glusterd_op_t op, dict_t *op_ctx, char **op_errstr, int npeers, uuid_t txn_id, @@ -1547,7 +1530,7 @@ gd_sync_task_begin (dict_t *op_ctx, rpcsvc_request_t * req) gf_boolean_t is_acquired = _gf_false; uuid_t *txn_id = NULL; struct list_head xaction_peers = {0,}; - glusterd_op_info_t txn_opinfo; + glusterd_op_info_t txn_opinfo = {{0},}; this = THIS; GF_ASSERT (this); |