path: root/doc
diff options
authorKrutika Dhananjay <>2017-03-28 19:26:41 +0530
committerShyamsundar Ranganathan <>2017-03-30 09:56:05 -0400
commit061b83ec4101e3ecc188038141212cde75656977 (patch)
tree9783a09c9656facd57599f5e29e76112322ee6dc /doc
parente43e818c902a27a9760311b4b8ba6303b34ec2b0 (diff)
features/shard: Pass the correct iatt for cache invalidation
Backport of: > Change-Id: Ib0349291d2d01f3782d6d0bdd90c6db5e0609210 > BUG: 1436739 > Reviewed on: > (cherry picked from commit 5369fe2d545e0a0d31ab9c9d2797744c130af259) This fixes a performance issue with shard which was causing the translator to trigger unusually high number of lookups for cache invalidation even when there was no modification to the file. In shard_common_stat_cbk(), it is local->prebuf that contains the aggregated size and block count as opposed to buf which only holds the attributes for the physical copy of base shard. Passing buf for inode_ctx invalidation would always set refresh to true since the file size in inode ctx contains the aggregated size and would never be same as @buf->ia_size. This was leading to every write/read being preceded by a lookup on the base shard even when the file underwent no modification. Change-Id: Ib0349291d2d01f3782d6d0bdd90c6db5e0609210 BUG: 1437326 Signed-off-by: Krutika Dhananjay <> Reviewed-on: Smoke: Gluster Build System <> Reviewed-by: Pranith Kumar Karampuri <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions