]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: do not include unused headers
authorKefu Chai <kchai@redhat.com>
Fri, 12 Mar 2021 07:13:24 +0000 (15:13 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Mar 2021 14:46:51 +0000 (22:46 +0800)
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 <kchai@redhat.com>
src/osd/PG.cc
src/osd/PG.h
src/osd/PrimaryLogPG.cc

index 343d9dcddfd3ecd9701ce1e1da0595a6ea86a981..bbb1085905f40c50b8dbf8040717020b1ec51e82 100644 (file)
@@ -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"
index c7dc441e3c3d479b6ed5dd9ffff1806beb8b9ff8..4b151c7825bf9ce3fea81b7e9d3850c9a5d1db39 100644 (file)
@@ -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;
 
index b563dbf2eb89ef6f9bf42acaa2c1972f7786ea0d..9886cdf80cdca3af9c92b6958bf5105ba36cb686 100644 (file)
@@ -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"