diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-06-06 13:46:50 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-06-06 12:36:34 -0700 |
commit | 212e9c12c08a266c84b60cb184ed49c01cf3c158 (patch) | |
tree | 173dda808cd274890294eeac3724741889eef345 /xlators/cluster | |
parent | b8fb6096b94905e2d304cd4219a70939495bfcc5 (diff) |
cluster/afr: Check for null gfid_req
gfid_req is set only by the fuse xlator. Fresh lookups
performed by self-heal-daemon, rebalance will not have
gfid at all.
Change-Id: I6712e3063067ecc5f19956e75d28c86bfc19fc65
BUG: 829203
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/3529
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')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index f24bd8b7d..f27227c4c 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -2296,7 +2296,7 @@ afr_lookup (call_frame_t *frame, xlator_t *this, &local->loc); local->fop = GF_FOP_LOOKUP; if (priv->choose_local && !priv->did_discovery) { - if (__is_root_gfid(gfid_req)) { + if (gfid_req && __is_root_gfid(gfid_req)) { local->do_discovery = _gf_true; priv->did_discovery = _gf_true; } |