summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c
index b1912c82480..764cca53e9d 100644
--- a/xlators/cluster/afr/src/afr-transaction.c
+++ b/xlators/cluster/afr/src/afr-transaction.c
@@ -540,7 +540,8 @@ afr_unlock (call_frame_t *frame, xlator_t *this)
call_count--;
}
- if (local->transaction.locked_nodes[i] & LOCKED_YES) {
+ if (call_count &&
+ local->transaction.locked_nodes[i] & LOCKED_YES) {
STACK_WIND (frame, afr_unlock_common_cbk,
priv->children[i],
priv->children[i]->fops->entrylk,