diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-10-02 08:29:38 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-02 07:15:00 -0700 |
commit | 77085451a88878728e703215f9bf871a74df92ba (patch) | |
tree | 6df696b357f4919ffd5354e69fffc0396ed0187f /xlators/cluster | |
parent | 8d70c0dd0a9346d75469634777daa362ec8f89f6 (diff) |
Set the lock owner properly for lock self heal.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 865 (Add locks recovery support in GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-lk-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-lk-common.c b/xlators/cluster/afr/src/afr-lk-common.c index 06f355974..d82fb877f 100644 --- a/xlators/cluster/afr/src/afr-lk-common.c +++ b/xlators/cluster/afr/src/afr-lk-common.c @@ -1882,6 +1882,8 @@ afr_recover_lock (call_frame_t *frame, xlator_t *this, lock_recovery_child = local->lock_recovery_child; + frame->root->lk_owner = flock->l_owner; + STACK_WIND_COOKIE (frame, afr_recover_lock_cbk, (void *) (long) lock_recovery_child, priv->children[lock_recovery_child], |