diff options
| author | Ravishankar N <ravishankar@redhat.com> | 2020-08-19 11:14:25 +0530 |
|---|---|---|
| committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-08-27 20:28:19 +0000 |
| commit | 0d63dff4be92380f9b67f2b17397a02b8980abe1 (patch) | |
| tree | 4f01a6f5d2ba0aa88937011cf4277e6a00eac93b /xlators/debug | |
| parent | 2b08fde39de3182bfa11e4a22490aa80c004ab03 (diff) | |
afr: add null check for thin-arbiter gfid.
Problem:
Lookup/creation of thin-arbiter ID file happens in background during
mounting. On new volumes, if the ID file creation is in progress, and a
FOP fails on data brick, a post-op (xattrop) is attemtped on TA. Since
the TA file's gfid is null at this point, the ASSERT checks in protocol/
client causes a crash.
Fix:
Given that we decided to do Lookup/creation of thin-arbiter in
background, fail the other AFR FOPS on TA if the ID file's gfid is null
instead of winding it down to protocol/client.
Also remove afr_changelog_thin_arbiter_post_op() which seems to be dead
code.
Updates: #763
Change-Id: I70dc666faf55cc5c8f7cf8e7d36085e4fa399c4d
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
(cherry picked from commit f9b5074394e3d2f3b6728aab97230ba620879426)
Diffstat (limited to 'xlators/debug')
0 files changed, 0 insertions, 0 deletions
