summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-15 12:26:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-20 01:51:22 -0700
commit1511c2d5fab879faad9e0156dc06a16c94fcfb13 (patch)
tree6c3564bcfaf5153cab56913f3c10eaf62db1fea5 /xlators/cluster/afr/src
parent9525781e747c7e799ef0c92920a12259e9940f6a (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,