Skip to content

Commit

Permalink
messages: #include necessary header
Browse files Browse the repository at this point in the history
* MOSDPGLog.h,MBackfillReserve.h,MOSDPGTrim.h,MRecoveryReserve.h:
  for instance, MLogRec is defined in PGPeeringEvent.h, we should not rely
  other header(s) to do this for us. so just #include PGPeeringEvent.h for
  its definition.
* MOSDPeeringOp: do not include PGPeeringEvent.h, as it's not used in
  this header. forward delcaration would suffice

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Apr 24, 2019
1 parent 22973d9 commit 8b84eb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/messages/MOSDPGTrim.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "msg/Message.h"
#include "messages/MOSDPeeringOp.h"
#include "osd/PGPeeringEvent.h"

class MOSDPGTrim : public MOSDPeeringOp {
private:
Expand Down
1 change: 1 addition & 0 deletions src/messages/MRecoveryReserve.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "msg/Message.h"
#include "messages/MOSDPeeringOp.h"
#include "osd/PGPeeringEvent.h"

class MRecoveryReserve : public MOSDPeeringOp {
private:
Expand Down

0 comments on commit 8b84eb6

Please sign in to comment.