summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c
index 81d5deeb019..4c85a4b0d03 100644
--- a/xlators/cluster/afr/src/afr-transaction.c
+++ b/xlators/cluster/afr/src/afr-transaction.c
@@ -63,7 +63,7 @@ __afr_txn_write_fop (call_frame_t *frame, xlator_t *this)
local->call_count = call_count;
for (i = 0; i < priv->child_count; i++) {
- if (local->transaction.pre_op[i]) {
+ if (local->transaction.pre_op[i] && !failed_subvols[i]) {
local->transaction.wind (frame, this, i);
if (!--call_count)
@@ -977,8 +977,10 @@ afr_changelog_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
priv = this->private;
child_index = (long) cookie;
- if (op_ret == -1)
+ if (op_ret == -1) {
+ local->op_errno = op_errno;
afr_transaction_fop_failed (frame, this, child_index);
+ }
if (priv->arbiter_count == 1 && !op_ret) {
if (xattr)