diff options
| -rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index f40df5c8ea3..4651c27ce5c 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -1261,7 +1261,6 @@ afr_pre_op_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, compound_args_cbk_t *args_cbk = data; int call_count = -1; int child_index = -1; - int i = 0; local = frame->local; priv = this->private; @@ -1280,11 +1279,11 @@ afr_pre_op_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, * Handle that case by passing the op_ret, op_errno values explicitly. */ if ((op_ret == -1) && (args_cbk == NULL)) { - afr_inode_write_fill (frame, this, (long) i, op_ret, op_errno, - NULL, NULL, NULL); + afr_inode_write_fill (frame, this, child_index, op_ret, + op_errno, NULL, NULL, NULL); } else { write_args_cbk = &args_cbk->rsp_list[1]; - afr_inode_write_fill (frame, this, (long) child_index, + afr_inode_write_fill (frame, this, child_index, write_args_cbk->op_ret, write_args_cbk->op_errno, &write_args_cbk->prestat, |
