]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerKefu Chai <kchai@redhat.com>
Sat, 12 May 2018 12:17:20 +0000 (20:17 +0800)
commitf745fc799096a26974f35fda95bf3353b7b7356e
tree4b76d377e0bb3f88ea0ef8fdab288049d5458d0f
parent1af66d54f173f933d6a26ffb617b429f2c700ac6
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>
(cherry picked from commit 00c5a30fa9b056ec97ff0b56e195b9a21dd1c136)
src/crush/CrushLocation.cc
src/osd/OSD.cc