diff options
author | Xavier Hernandez <xhernandez@datalab.es> | 2014-10-06 16:34:58 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-10-20 03:40:04 -0700 |
commit | 8ea1eaf46153b56fb4c652a8eb9fb95a49038373 (patch) | |
tree | f3fadf3d5ae4c1bffe810ca8801c01b8523f718f /xlators/cluster/ec/src/ec-data.h | |
parent | 2d92565e60485c81bbe6b3ebde60aeb623eda36a (diff) |
ec: Fix incorrect management of healed bricks
The final lookup made to restore final file attributes after a self-heal
did clear the mask of bad bricks, causing that the final setattr won't
modify any brick at all. This caused that some attriutes, specially the
modification time of the file didn't get updated properly.
Now the mask of healed bricks is saved before doing the last lookup.
It's also used to correctly report the repaired bricks.
Change-Id: Ib94083c9e1b562515dfb54f9574120f1f031dccc
BUG: 1149723
Signed-off-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-on: http://review.gluster.org/8905
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-data.h')
-rw-r--r-- | xlators/cluster/ec/src/ec-data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-data.h b/xlators/cluster/ec/src/ec-data.h index 49090933ade..d87cb26b52d 100644 --- a/xlators/cluster/ec/src/ec-data.h +++ b/xlators/cluster/ec/src/ec-data.h @@ -278,6 +278,7 @@ struct _ec_heal uintptr_t good; uintptr_t bad; uintptr_t open; + uintptr_t fixed; uint64_t offset; uint64_t size; uint64_t version; |