summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-15 12:35:26 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-20 01:51:14 -0700
commit6607f92f578b4aad5a8df3e8121420b9db69382d (patch)
tree7e32b8a30b00c1918f6fa4be9636e45d3665a4f8
parent85f355fe5c63e3de8a84d856851180c2ea26345f (diff)
cluster/afr: Check for call_count in ENTRY_RENAME_TRANSACTION.v2.0.10rc2
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
-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 b1912c8..764cca5 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,