Skip to content

Commit

Permalink
osd: initialize class_handler of OSD properly
Browse files Browse the repository at this point in the history
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.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Aug 2, 2016
1 parent a8eae0b commit cba31f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/OSD.h
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ class OSD : public Dispatcher,
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) {
Expand Down

0 comments on commit cba31f5

Please sign in to comment.