diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2013-02-06 12:34:17 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-06 09:25:42 -0800 |
commit | 3a141cda38cd6908dc3f1103a02eb38007552e87 (patch) | |
tree | 948a1044b637b4be870c7aa0e6b75fe066da0eb6 /xlators/cluster/afr/src/afr-lk-common.c | |
parent | e0a331c4bea8713a67a0f8c5dc4bac1e6f81f358 (diff) |
cluster/afr: Avoid priv->eager_lock value update race
Change-Id: I7049c0c64e36a9dfa4cc0e0b34de7ec111d2f6c1
BUG: 908302
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/4076
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-lk-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-lk-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-lk-common.c b/xlators/cluster/afr/src/afr-lk-common.c index 542b2959d83..75df3bb3dea 100644 --- a/xlators/cluster/afr/src/afr-lk-common.c +++ b/xlators/cluster/afr/src/afr-lk-common.c @@ -1554,7 +1554,7 @@ afr_nonblocking_inodelk (call_frame_t *frame, xlator_t *this) continue; flock_use = &flock; - if (!priv->eager_lock) { + if (!local->transaction.eager_lock_on) { goto wind; } |