diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-01-28 15:16:59 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-01-29 19:42:24 -0800 |
commit | 922134fdc08afb2810cb0205f26693d36db6fd4e (patch) | |
tree | 362907e5faa1f18b4ad67edc91d69922a04422fc /geo-replication | |
parent | 410fe979b4e2492f04e9cc8949f5ef5041e1135a (diff) |
cluster/afr: Add gfid to index in wind un-conditionally
Problem:
If brick crashes just after performing xattrop before
reaching index _cbk then the gfid will not be added to/deleted from
index. If it is not deleted it will be deleted when self-heal is
triggered. But if the crash happens before the file is added to index,
user may think the system does not need self-heal even when there is
this file that needs to be healed.
Fix:
Add file to index un-conditionally in wind phase. This way the
file remains in index even when brick process crashes before reaching
_cbk. This does not affect performance because of caching(check
_index_action) built into index xlator.
Change-Id: Ie83ac6aa1ac0ff66862e757864865b47ab39404d
BUG: 1058713
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/6836
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions