From 77085451a88878728e703215f9bf871a74df92ba Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Sat, 2 Oct 2010 08:29:38 +0000 Subject: Set the lock owner properly for lock self heal. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Vijay Bellur BUG: 865 (Add locks recovery support in GlusterFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865 --- xlators/features/locks/src/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 0df5fcae5..5d44f0e45 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -513,6 +513,7 @@ posix_lock_to_flock (posix_lock_t *lock, struct gf_flock *flock) flock->l_pid = lock->client_pid; flock->l_type = lock->fl_type; flock->l_start = lock->fl_start; + flock->l_owner = lock->owner; if (lock->fl_end == LLONG_MAX) flock->l_len = 0; -- cgit