crimson: include headers if necessary

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>
This commit is contained in:
Kefu Chai 2019-03-21 14:52:46 +08:00
parent ebb7f32482
commit 0c60abf5ba
5 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include "cyan_store.h"
#include <fmt/format.h>
#include <fmt/ostream.h>
#include "common/safe_io.h"

View 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"

View 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"

View 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"

View File

@ -1,4 +1,5 @@
#include <chrono>
#include <iostream>
#include <numeric>
#include <seastar/core/app-template.hh>
#include "crimson/thread/ThreadPool.h"