From e82cd7654a8c2faf46e1c553c7f8c251dff7002c Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 11 Nov 2019 11:25:03 +0530 Subject: cluster/dht: Don't skip entries with invalid stat Don't strip out entries with invalid stats in dht_readdirp_cbk. Change-Id: I136ab342762d020a3c0f43e51e0090aed2af4120 Fixes: bz#1769754 Signed-off-by: N Balachandran --- xlators/cluster/dht/src/dht-common.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xlators/cluster/dht/src') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index eda01e79324..98488c10885 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -6681,13 +6681,12 @@ dht_readdirp_cbk(call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, orig_entry->d_name, orig_entry->d_type); if (IA_ISINVAL(orig_entry->d_stat.ia_type)) { - /*stat failed somewhere- ignore this entry*/ - gf_msg_debug(this->name, EINVAL, - "Invalid stat, ignoring entry " - "%s gfid %s", + /*stat failed somewhere- display this entry but the data may + * be inaccurate. + */ + gf_msg_debug(this->name, EINVAL, "Invalid stat for %s (gfid %s)", orig_entry->d_name, uuid_utoa(orig_entry->d_stat.ia_gfid)); - continue; } if (check_is_linkfile(NULL, (&orig_entry->d_stat), orig_entry->dict, -- cgit