path: root/xlators/cluster/afr/src/afr-common.c
diff options
authorPoornima G <>2017-01-05 15:36:02 +0530
committerPranith Kumar Karampuri <>2017-01-05 21:12:18 -0800
commit95d07a3d2d68805d93d36a447436e27c48777939 (patch)
treedfb77928ec012f596c058f91732aafab771d3b60 /xlators/cluster/afr/src/afr-common.c
parentc6b0adb483c1d0c4922e6d4cb77abfb69d314a8e (diff)
ec: Invalidations in disperse volume should not update the stat
Issue: In disperse volume, the file is present across bricks, hence the stat from one brick doesn't carry the valid size of the file. Therefore the upcall from one brick updating the md-cache results in wrong size being updated. Fix: If the notification is cache invalidation then, indicate md-cache that the attributes is invalid. BUG: 1410375 Change-Id: Id89d2283478e70b62b435a8891fffc86d2be8cb2 Signed-off-by: Poornima G <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Xavier Hernandez <> CentOS-regression: Gluster Build System <> Reviewed-by: Pranith Kumar Karampuri <>
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 46396cf..a400031 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -4807,8 +4807,7 @@ afr_notify (xlator_t *this, int32_t event,
for (i = 0; i < priv->child_count; i++) {
if (dict_get (up_ci->dict, priv->pending_key[i])) {
- ret = dict_set_int8 (up_ci->dict,
+ up_ci->flags |= UP_INVAL_ATTR;
itable = ((xlator_t *)this->graph->top)->itable;
/*Internal processes may not have itable for top xlator*/
if (itable)