diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-05-13 11:44:49 +0200 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-05-27 22:43:41 -0700 |
commit | 58a687a8e0967393428bc5f93f0d32bbc3792f88 (patch) | |
tree | 851736db3176c2f9849fe2f43d26952804992fc8 /xlators/features | |
parent | f92a415dd4fdd34c97fa6af4af528e1b50a4265f (diff) |
features/shard: Skip block count and size update for directories
Change-Id: Iaa7022c95a8d9c9c471db025ec644e0bcc4eeb29
BUG: 1221104
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/10772
Tested-by: NetBSD Build System
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/shard/src/shard.c | 2 |
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); |