diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-04-15 12:35:26 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-04-20 01:51:14 -0700 |
commit | 6607f92f578b4aad5a8df3e8121420b9db69382d (patch) | |
tree | 7e32b8a30b00c1918f6fa4be9636e45d3665a4f8 /xlators/cluster/afr | |
parent | 85f355fe5c63e3de8a84d856851180c2ea26345f (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
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 3 |
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, |