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>
bool asok_command(string command, cmdmap_t& cmdmap, string format, ostream& ss);
public:
- ClassHandler *class_handler;
+ ClassHandler *class_handler = nullptr;
int get_nodeid() { return whoami; }
static ghobject_t get_osdmap_pobject_name(epoch_t epoch) {