From aa896fd267260da8289b985f3465d416568dd3d2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 12 Mar 2021 15:13:24 +0800 Subject: [PATCH] osd/PG: do not include unused headers neither MOSDPGNotify nor MOSDPGInfo is used in PG.cc, so drop the corresponding headers. the same appiles to some other types and headers declared and included in PG.h Signed-off-by: Kefu Chai --- src/osd/PG.cc | 2 -- src/osd/PG.h | 5 ----- src/osd/PrimaryLogPG.cc | 1 + 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 343d9dcddfd..bbb1085905f 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -29,8 +29,6 @@ #include "common/perf_counters.h" #include "messages/MOSDOp.h" -#include "messages/MOSDPGNotify.h" -#include "messages/MOSDPGInfo.h" #include "messages/MOSDPGScan.h" #include "messages/MOSDPGBackfill.h" #include "messages/MOSDPGBackfillRemove.h" diff --git a/src/osd/PG.h b/src/osd/PG.h index c7dc441e3c3..4b151c7825b 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -33,7 +33,6 @@ #include "PGLog.h" #include "OSDMap.h" -#include "messages/MOSDPGLog.h" #include "include/str_list.h" #include "PGBackend.h" #include "PGPeeringEvent.h" @@ -57,14 +56,10 @@ class OSD; class OSDService; class OSDShard; class OSDShardPGSlot; -class MOSDPGScan; -class MOSDPGBackfill; -class MOSDPGInfo; class PG; struct OpRequest; typedef OpRequest::Ref OpRequestRef; -class MOSDPGLog; class DynamicPerfStats; class PgScrubber; diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index b563dbf2eb8..9886cdf80cd 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -41,6 +41,7 @@ #include "messages/MOSDRepScrub.h" #include "messages/MOSDPGBackfill.h" #include "messages/MOSDPGBackfillRemove.h" +#include "messages/MOSDPGLog.h" #include "messages/MOSDPGUpdateLogMissing.h" #include "messages/MOSDPGUpdateLogMissingReply.h" #include "messages/MCommandReply.h" -- 2.39.5