summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-05-13 11:44:49 +0200
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-28 19:24:21 -0700
commitbef714fa854536bf4a40d9d83a11945cb21248cb (patch)
tree6adbc3a6b66c8ad75e6b89ee7f68337cea6ad035 /xlators/features
parent9a1cf9327e5f2bc5afbafec7a3659e92e3a1bc2f (diff)
features/shard: Skip block count and size update for directories
Backport of: http://review.gluster.org/10772 Change-Id: I3594641ef0bf6a17e1ceab3c9ad87ef18b981d2e BUG: 1225922 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/10972 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/shard/src/shard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 3f0ee7ee525..c3613711840 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -3188,6 +3188,8 @@ shard_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (!entry->dict)
continue;
+ if (IA_ISDIR (entry->d_stat.ia_type))
+ continue;
shard_modify_size_and_block_count (&entry->d_stat, entry->dict);