diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-12-16 21:47:14 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-12-22 05:10:15 -0800 |
commit | 941edee5dc38328fb46dd8b284956357ca67dec9 (patch) | |
tree | 6fe9e0ed06b3e53ae4d52b0768d1f76daf9773ac /xlators/cluster/afr | |
parent | 7eed1d5ba51b65e865f79a392aff70048c702bf0 (diff) |
cluster/afr: Fix meta data lock range
Change-Id: I7615f31309c6c8f5373e1ff0535d84396dfa1455
BUG: 765430
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/807
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-metadata.c b/xlators/cluster/afr/src/afr-self-heal-metadata.c index c67748b2f8c..072ed74f8bf 100644 --- a/xlators/cluster/afr/src/afr-self-heal-metadata.c +++ b/xlators/cluster/afr/src/afr-self-heal-metadata.c @@ -597,7 +597,7 @@ afr_sh_metadata_lock (call_frame_t *frame, xlator_t *this) afr_set_lock_number (frame, this); - int_lock->lk_flock.l_start = 0; + int_lock->lk_flock.l_start = LLONG_MAX - 1; int_lock->lk_flock.l_len = 0; int_lock->lk_flock.l_type = F_WRLCK; int_lock->lock_cbk = afr_sh_metadata_post_nonblocking_inodelk_cbk; |