diff options
author | Ravishankar N <ravishankar@redhat.com> | 2018-12-24 13:00:19 +0530 |
---|---|---|
committer | Ravishankar N <ravishankar@redhat.com> | 2020-04-02 04:35:50 +0000 |
commit | 96abfede312435ae2745852c5020be5e2cbf12cc (patch) | |
tree | 3fd948080aafbd34d8863e14d69b8c3946ef592b /xlators/cluster/afr/src/afr-self-heal.h | |
parent | 7c40f95744281f7a285ef3b81a87fa980243ad1e (diff) |
afr: mark pending xattrs as a part of metadata heal
...if pending xattrs are zero for all children.
Problem:
If there are no pending xattrs and a metadata heal needs to be
performed, it can be possible that we end up with xattrs inadvertendly
deleted from all bricks, as explained in the BZ.
Fix:
After picking one among the sources as the good copy, mark pending xattrs on
all sources to blame the sinks. Now even if this metadata heal fails midway,
a subsequent heal will still choose one of the valid sources that it
picked previously.
Updates: #1067
Change-Id: If1b050b70b0ad911e162c04db4d89b263e2b8d7b
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
(cherry picked from commit 2d5ba449e9200b16184b1e7fc84cabd015f1f779)
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal.h')
0 files changed, 0 insertions, 0 deletions