]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson: include headers if necessary
authorKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 06:52:46 +0000 (14:52 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 09:03:13 +0000 (17:03 +0800)
we should not rely on seastar or other headers to do this. if we use
fmt or std functions, we should include corresponding header(s).

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/cyan_store.cc
src/crimson/osd/main.cc
src/crimson/osd/osd.cc
src/crimson/osd/osd_meta.cc
src/test/crimson/test_thread_pool.cc

index 3950e29cade7619b35c67a86a7722597b64e8129..d0d7d6acbd82572f5c6bee32f4844d49d9126625 100644 (file)
@@ -1,6 +1,7 @@
 #include "cyan_store.h"
 
 #include <fmt/format.h>
+#include <fmt/ostream.h>
 
 #include "common/safe_io.h"
 
index 6f2d68af588a27dd5b1cce1e3d90c229f8fe0724..1151f0f3a6da5010464a056924861182ecb5aa8b 100644 (file)
@@ -7,6 +7,7 @@
 #include <iostream>
 
 #include <seastar/core/app-template.hh>
+#include <seastar/core/print.hh>
 #include <seastar/core/thread.hh>
 
 #include "common/ceph_argparse.h"
index f307ffc13a932a291dffcbd7c7b68ba28be2989d..631015b2039409b7941ebc22e4d3a93d5263471f 100644 (file)
@@ -3,7 +3,8 @@
 #include <boost/iterator/counting_iterator.hpp>
 #include <boost/range/join.hpp>
 #include <boost/smart_ptr/make_local_shared.hpp>
-
+#include <fmt/format.h>
+#include <fmt/ostream.h>
 #include "common/pick_address.h"
 #include "messages/MOSDBeacon.h"
 #include "messages/MOSDBoot.h"
index 6eb225fe8b948d5ef81d5e3c375eaaf4348fc27f..309d70e50bb89e140a08bace867ef84a2a0bcb47 100644 (file)
@@ -1,5 +1,7 @@
 #include "osd_meta.h"
 
+#include <fmt/format.h>
+
 #include "crimson/os/cyan_collection.h"
 #include "crimson/os/cyan_store.h"
 #include "crimson/os/Transaction.h"
index 48be1ffebbf9d153e0856a53c237acd3d0141c15..61e714456e453148b7d46c4c07e7ce86309eb6bd 100644 (file)
@@ -1,4 +1,5 @@
 #include <chrono>
+#include <iostream>
 #include <numeric>
 #include <seastar/core/app-template.hh>
 #include "crimson/thread/ThreadPool.h"