summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-data.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-06-15 16:32:06 +0530
committerXavier Hernandez <xhernandez@datalab.es>2015-06-26 00:25:28 -0700
commit5485cb1b2e9b68a9746acc08289aaadb2cfe11c4 (patch)
tree5e2c76b1706b6c364ea20c6aa0a9854b35a5c0a3 /xlators/cluster/ec/src/ec-data.c
parent4f76b8d11a93cfb74667f6b3051186b86c1ec55b (diff)
cluster/ec: wind fops on good subvols for access/readdir[p]
Change-Id: I1e629a6adc803c4b7164a5a7a81ee5cb1d0e139c BUG: 1232172 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/11246 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'xlators/cluster/ec/src/ec-data.c')
-rw-r--r--xlators/cluster/ec/src/ec-data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-data.c b/xlators/cluster/ec/src/ec-data.c
index 047ccd5ff31..72f3b0b4107 100644
--- a/xlators/cluster/ec/src/ec-data.c
+++ b/xlators/cluster/ec/src/ec-data.c
@@ -59,6 +59,7 @@ ec_cbk_data_t * ec_cbk_data_allocate(call_frame_t * frame, xlator_t * this,
cbk->count = 1;
cbk->op_ret = op_ret;
cbk->op_errno = op_errno;
+ INIT_LIST_HEAD (&cbk->entries.list);
LOCK(&fop->lock);
@@ -92,6 +93,7 @@ void ec_cbk_data_destroy(ec_cbk_data_t * cbk)
iobref_unref(cbk->buffers);
}
GF_FREE(cbk->vector);
+ gf_dirent_free (&cbk->entries);
mem_put(cbk);
}