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 06e8931f2da..2d689e389bc 100644
--- a/xlators/cluster/afr/src/afr-transaction.c
+++ b/xlators/cluster/afr/src/afr-transaction.c
@@ -613,7 +613,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,