summaryrefslogtreecommitdiff
path: root/src/osd/OSD.cc
diff options
context:
space:
mode:
authorRoald J. van Loon <roaldvanloon@gmail.com>2012-12-24 13:10:57 +0100
committerRoald van Loon <roaldvanloon@gmail.com>2012-12-24 22:26:56 +0000
commit17ae36a5420eb4568f93ba3d9f185dfbc0a42918 (patch)
treeae06815a5638dea51b98466d81b6b0c5a46f987d /src/osd/OSD.cc
parent18001d059656224abbf7d92c1c54befd33ec8d6e (diff)
downloadceph-wip-dout.tar.gz
cleanup: changed order of #includes, global_context.h, debug.hwip-dout
- lots of rewriting of #include ordering (see below) - renamed mdstypes.h to mds_types.h, same as {osd,mon}_types.h - included global/global_context.h and global/debug.h where used - fixed lots of duplicate includes The order of #includes is now; 1. types include (include/types.h, mds/mds_types.h, etc) 2. system includes (like stl, boost, etc) 3. ceph includes (include/..) 4. ceph common (common/..) 5. ceph other (auth/.., os/.., global/.., etc) 6. list of messages/.., if used 7. local includes (headers from same module) 8. own header (<basename>.h) "using namespace" stuff is always directly below #include, not intermixed with them (WIP notice: most files have this implemented, but some not yet) Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
Diffstat (limited to 'src/osd/OSD.cc')
-rw-r--r--src/osd/OSD.cc75
1 files changed, 24 insertions, 51 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index e0376e19f2d..2bc1a5e91fb 100644
--- a/src/osd/OSD.cc
+++ b/src/osd/OSD.cc
@@ -11,6 +11,7 @@
* Foundation. See file COPYING.
*
*/
+#include "include/types.h"
#include <fstream>
#include <iostream>
@@ -24,32 +25,31 @@
#include <sys/mount.h>
#endif // DARWIN || __FreeBSD__
-#include "osd/PG.h"
-
-#include "include/types.h"
#include "include/compat.h"
-
-#include "OSD.h"
-#include "OSDMap.h"
-#include "Watch.h"
-
+#include "include/color.h"
+#include "include/assert.h"
+#include "common/config.h"
+#include "common/perf_counters.h"
+#include "common/safe_io.h"
+#include "common/HeartbeatMap.h"
+#include "common/admin_socket.h"
+#include "common/errno.h"
#include "common/ceph_argparse.h"
#include "common/version.h"
-#include "os/FileStore.h"
-#include "os/FileJournal.h"
-
-#include "ReplicatedPG.h"
-
-#include "Ager.h"
-
-
+#include "auth/AuthAuthorizeHandler.h"
+#include "mon/MonClient.h"
#include "msg/Messenger.h"
#include "msg/Message.h"
-
-#include "mon/MonClient.h"
+#include "objclass/objclass.h"
+#include "os/FileStore.h"
+#include "os/FileJournal.h"
+#include "perfglue/cpu_profiler.h"
+#include "perfglue/heap_profiler.h"
+#include "global/signal_handler.h"
+#include "global/pidfile.h"
+#include "global/debug.h"
#include "messages/MLog.h"
-
#include "messages/MGenericMessage.h"
#include "messages/MPing.h"
#include "messages/MOSDPing.h"
@@ -60,7 +60,6 @@
#include "messages/MOSDSubOpReply.h"
#include "messages/MOSDBoot.h"
#include "messages/MOSDPGTemp.h"
-
#include "messages/MOSDMap.h"
#include "messages/MOSDPGNotify.h"
#include "messages/MOSDPGQuery.h"
@@ -74,47 +73,21 @@
#include "messages/MOSDPGMissing.h"
#include "messages/MBackfillReserve.h"
#include "messages/MRecoveryReserve.h"
-
#include "messages/MOSDAlive.h"
-
#include "messages/MOSDScrub.h"
-#include "messages/MOSDRepScrub.h"
-
#include "messages/MMonCommand.h"
#include "messages/MCommand.h"
#include "messages/MCommandReply.h"
-
#include "messages/MPGStats.h"
#include "messages/MPGStatsAck.h"
-
#include "messages/MWatchNotify.h"
-#include "common/perf_counters.h"
-#include "common/Timer.h"
-#include "common/LogClient.h"
-#include "common/safe_io.h"
-#include "common/HeartbeatMap.h"
-#include "common/admin_socket.h"
-
-#include "global/signal_handler.h"
-#include "global/pidfile.h"
-#include "global/debug.h"
-
-#include "include/color.h"
-#include "perfglue/cpu_profiler.h"
-#include "perfglue/heap_profiler.h"
-
-#include "osd/ClassHandler.h"
-#include "osd/OpRequest.h"
-
-#include "auth/AuthAuthorizeHandler.h"
-
-#include "common/errno.h"
-
-#include "objclass/objclass.h"
+#include "OSDMap.h"
+#include "Watch.h"
+#include "ReplicatedPG.h"
+#include "Ager.h"
-#include "include/assert.h"
-#include "common/config.h"
+#include "OSD.h"
#define dout_subsys ceph_subsys_osd
#undef dout_prefix