summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-15 12:30:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-20 01:51:06 -0700
commit74b165a23fdb4791d2dcd83194ef8765bb43716e (patch)
treedaddd47d1853456a4b1f7979b7de35c40c8e2a2a /xlators/cluster/afr/src
parent477f6d1cdcc347bb0fa4ae79c9e48be7d0811235 (diff)
cluster/afr: Check for call_count in ENTRY_RENAME_TRANSACTION
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 824 (Crash in afr rename transaction) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=824
Diffstat (limited to 'xlators/cluster/afr/src')
-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 06e8931f2..2d689e389 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,