diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2018-03-20 10:57:13 +0100 |
---|---|---|
committer | Xavi Hernandez <xhernandez@redhat.com> | 2018-03-21 16:27:36 +0000 |
commit | b5f307fa5e7241dd000f0eeac27cc4638a5bccf8 (patch) | |
tree | 0631843aed393d05d8d1b1a988c52ac37dda7b62 /rpc/rpc-transport | |
parent | 448dec703d603a150dc1f1cc231c8389ab2fb2ea (diff) |
cluster/ec: fix SHD crash for null gfid's
When the self-heal daemon is doing a full sweep it uses readdirp to
get extra stat information from each file. This information is
obtained in two steps by the posix xlator: first the directory is
read to get the entries and then each entry is stated to get additional
info. Between these two steps, it's possible that the file is removed
by the user, so we'll get an error, leaving stat info empty.
EC's heal daemon was using the gfid blindly, causing an assert failure
when protocol/client was trying to encode the gfid.
To fix the problem a check has been added. If we detect a null gfid, we
simply ignore it and continue healing.
Change-Id: I2e4acdcecd0b6951055e50d1c37d686a2186a228
BUG: 1558016
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
0 files changed, 0 insertions, 0 deletions