]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: fix osd smart data collection segment fault issue.
authorGu Zhongyan <guzhongyan@360.cn>
Fri, 27 Apr 2018 10:20:02 +0000 (18:20 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Fri, 11 May 2018 08:05:07 +0000 (16:05 +0800)
commit00c5a30fa9b056ec97ff0b56e195b9a21dd1c136
treeaaaf1ee1118126bdfd304d391b82b80bcdb00fcc
parent1c90963ae4cf11ea54dc92d870435718adf32fac
osd: fix osd smart data collection segment fault issue.
output.read_fd() could return zero length. it needs to
be handled gracefully.

always call invoke join() if spawn() is successfully returned.
otherwise there will be assert failure in ~SubProcess().

Fixes: http://tracker.ceph.com/issues/23899
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
src/crush/CrushLocation.cc
src/osd/OSD.cc