diff options
author | karthik-us <ksubrahm@redhat.com> | 2019-03-13 13:00:47 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2020-02-13 09:38:14 +0000 |
commit | a3c8a6180a53fb96cc090c5552c64088f68ec4dc (patch) | |
tree | def7823bebe6d608d886c8a1d165c9d9cae37e09 /contrib | |
parent | 8db8202f716fd24c8c52f8ee5f66e169310dc9b1 (diff) |
cluster/afr: Check for lock on source & sink before doing data heal
Problem:
In function afr_selfheal_data_block(), we only check for the lock count
to be equal to or greater than the number of sinks. There can be a case
where we have 2 source bricks and one sink and the locking is successful
on only the source brick(s). In this case we continue with the healing
on sink without having a lock, which is not correct.
Fix:
Check for lock on atleast source & one sink before starting the data heal.
Change-Id: Iebcb57dcaa4b31831fedfee63d6ca16e9d6c8df8
fixes: bz#1688115
Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions