Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messages: #include necessary header #27590

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Conversation

tchaikov
Copy link
Contributor

  • MOSDPGLog.h,MBackfillReserve.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 kchai@redhat.com

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Copy link
Member

@neha-ojha neha-ojha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the other headers like MRecoveryReserve.h, don't they need this?

@tchaikov tchaikov force-pushed the wip-include-cleanup branch 2 times, most recently from f7d2968 to 65310c5 Compare April 17, 2019 00:27
@tchaikov
Copy link
Contributor Author

@neha-ojha i updated MOSDPGTrim.h and MRecoveryReserve.h also. PTAL.

@liewegas
Copy link
Member

needs rebase

* 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 <kchai@redhat.com>
@tchaikov tchaikov closed this Apr 25, 2019
@tchaikov tchaikov deleted the wip-include-cleanup branch April 25, 2019 06:27
@tchaikov tchaikov restored the wip-include-cleanup branch April 25, 2019 06:27
@tchaikov tchaikov reopened this Apr 25, 2019
@liewegas liewegas merged commit 8b84eb6 into ceph:master Apr 29, 2019
liewegas added a commit that referenced this pull request Apr 29, 2019
* refs/pull/27590/head:
	messages: #include necessary header

Reviewed-by: Neha Ojha <nojha@redhat.com>
@tchaikov tchaikov deleted the wip-include-cleanup branch April 29, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants