diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-01-22 12:57:10 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-02-03 05:17:52 -0800 |
commit | 1a65f14feaa83f82043bf460b10550717e1adac2 (patch) | |
tree | c21d6bfe0d1cf026712dd3cbea76d7d277579475 /xlators | |
parent | 67582c9a5cf95de71477965e788be6c2e5b74142 (diff) |
performance/md-cache: Initialise local->loc before winding nameless lookup
Backport of: http://review.gluster.org/#/c/9476
Change-Id: I0611da7ae271baff7fd14d4a266a2c0e5e4a294a
BUG: 1186119
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/9491
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/md-cache/src/md-cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index 782d258f47c..a4193545b8d 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -820,15 +820,15 @@ mdc_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, if (!local) goto uncached; + loc_copy (&local->loc, loc); + if (!loc->name) - /* A nameless discovery is dangerous to cache. We + /* A nameless discovery is dangerous to serve from cache. We perform nameless lookup with the intention of re-establishing an inode "properly" */ goto uncached; - loc_copy (&local->loc, loc); - ret = mdc_inode_iatt_get (this, loc->inode, &stbuf); if (ret != 0) goto uncached; |