]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: initialize class_handler of OSD properly 10548/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 2 Aug 2016 07:02:49 +0000 (15:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 2 Aug 2016 22:21:08 +0000 (06:21 +0800)
commit30cffa0653f7260618c5f8a3b56641e099b59c9a
treec0d352adc5431edd2f40b7a0d32d2c2d328f8320
parent420843a983e423b63f2a0abfcd03042bc540de53
osd: initialize class_handler of OSD properly

The destructor of OSD will delete class_handler arbitrarily
and there are cases we'll fail to start an osd before we
load the class_handler correctly.

So it is safe to initialize class_handler to NULL as to
avoid access violation.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.h