]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: move lexical_cast and assert re-#include to the top
authorSage Weil <sage@inktank.com>
Wed, 30 Jan 2013 03:48:25 +0000 (19:48 -0800)
committerSage Weil <sage@inktank.com>
Wed, 30 Jan 2013 03:48:25 +0000 (19:48 -0800)
We should keep the re-#includes immediately following the offender, and
documented.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/Server.cc

index 0d9f4ef207dcf8df081dcb0bd8897d7f2c25f469..92f5bf6426838cfe40338f1c1e9c455f14849b3c 100644 (file)
@@ -12,6 +12,9 @@
  * 
  */
 
+#include <boost/lexical_cast.hpp>
+#include "include/assert.h"  // lexical_cast includes system assert.h
+
 #include "MDS.h"
 #include "Server.h"
 #include "Locker.h"
@@ -52,8 +55,6 @@
 #include "include/compat.h"
 #include "osd/OSDMap.h"
 
-#include <boost/lexical_cast.hpp>
-
 #include <errno.h>
 #include <fcntl.h>
 
@@ -62,7 +63,6 @@
 using namespace std;
 
 #include "common/config.h"
-#include "include/assert.h"
 
 #define dout_subsys ceph_subsys_mds
 #undef dout_prefix