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
This commit is contained in:
parent
477f6d1cdc
commit
74b165a23f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user