diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 6 |
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 5f2696b6445..40a4bb26ada 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -919,8 +919,10 @@ afr_lock_cbk (call_frame_t *frame, void *cookie, xlator_t *this, (local->op_errno == ENOSYS)) { afr_unlock (frame, this); } else { - local->transaction.locked_nodes[child_index] = 1; - local->transaction.lock_count++; + if (op_ret == 0) { + local->transaction.locked_nodes[child_index] = 1; + local->transaction.lock_count++; + } afr_lock_rec (frame, this, child_index + 1); } |