|
|
3604df |
From b72fd52167fe168b39671e845ebdbccfa8054078 Mon Sep 17 00:00:00 2001
|
|
|
3604df |
From: Poornima G <pgurusid@redhat.com>
|
|
|
3604df |
Date: Fri, 8 Jul 2016 14:25:35 +0530
|
|
|
3604df |
Subject: [PATCH 115/141] md-cache: Enable caching of stat fetched from readdirp
|
|
|
3604df |
|
|
|
3604df |
Patch http://review.gluster.org/11894 removed readdirp fop for
|
|
|
3604df |
md-cache, but there is no mention of exact xlator which was
|
|
|
3604df |
failing because of this. As mentioned by Rafi(author of patch 11894)
|
|
|
3604df |
tiering and svc doesn't really need this as the inode_ctx is populated
|
|
|
3604df |
in readdirp_cbk. Hence reverting this commit.
|
|
|
3604df |
This reverts commit c8c9308134ae4ce24c630a1b0ccfcf4e8f9b0fe7.
|
|
|
3604df |
|
|
|
3604df |
Change-Id: Ib8d00b3f129596f3a54984f839199175f5c9b55b
|
|
|
3604df |
BUG: 1284873
|
|
|
3604df |
Signed-off-by: Poornima G <pgurusid@redhat.com>
|
|
|
3604df |
Reviewed-on: http://review.gluster.org/14879
|
|
|
3604df |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
3604df |
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
3604df |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
3604df |
Reviewed-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
|
|
|
3604df |
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
|
|
|
3604df |
Reviewed-on: https://code.engineering.redhat.com/gerrit/87028
|
|
|
3604df |
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
3604df |
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
3604df |
---
|
|
|
3604df |
xlators/performance/md-cache/src/md-cache.c | 5 +----
|
|
|
3604df |
1 files changed, 1 insertions(+), 4 deletions(-)
|
|
|
3604df |
|
|
|
3604df |
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
|
|
|
3604df |
index c1aef21..1ad9e8e 100644
|
|
|
3604df |
--- a/xlators/performance/md-cache/src/md-cache.c
|
|
|
3604df |
+++ b/xlators/performance/md-cache/src/md-cache.c
|
|
|
3604df |
@@ -2068,8 +2068,7 @@ int
|
|
|
3604df |
mdc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
|
|
|
3604df |
int op_ret, int op_errno, gf_dirent_t *entries, dict_t *xdata)
|
|
|
3604df |
{
|
|
|
3604df |
- gf_dirent_t *entry = NULL;
|
|
|
3604df |
- struct md_cache *mdc = NULL;
|
|
|
3604df |
+ gf_dirent_t *entry = NULL;
|
|
|
3604df |
|
|
|
3604df |
if (op_ret <= 0)
|
|
|
3604df |
goto unwind;
|
|
|
3604df |
@@ -2077,8 +2076,6 @@ mdc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
|
|
|
3604df |
list_for_each_entry (entry, &entries->list, list) {
|
|
|
3604df |
if (!entry->inode)
|
|
|
3604df |
continue;
|
|
|
3604df |
- if (mdc_inode_ctx_get (this, entry->inode, &mdc) != 0)
|
|
|
3604df |
- continue;
|
|
|
3604df |
mdc_inode_iatt_set (this, entry->inode, &entry->d_stat);
|
|
|
3604df |
mdc_inode_xatt_set (this, entry->inode, entry->dict);
|
|
|
3604df |
}
|
|
|
3604df |
--
|
|
|
3604df |
1.7.1
|
|
|
3604df |
|