diff options
author | Yuan Zhou <yuan.zhou@intel.com> | 2018-12-20 14:21:58 +0100 |
---|---|---|
committer | Yuan Zhou <yuan.zhou@intel.com> | 2019-03-21 17:16:25 +0100 |
commit | 5b974e7c92508379efea9fef7f9ba870651103be (patch) | |
tree | 61d2eb4afa0eb16cc88c80f8a096c8e64234dd9f /src/tools | |
parent | tools: create local utils for object cache daemon (diff) | |
download | ceph-5b974e7c92508379efea9fef7f9ba870651103be.tar.xz ceph-5b974e7c92508379efea9fef7f9ba870651103be.zip |
tools: format headers for object cache daemon
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/immutable_object_cache/CacheClient.cc | 3 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/CacheClient.h | 4 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/CacheController.h | 13 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/CacheServer.cc | 3 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/CacheServer.h | 14 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/CacheSession.h | 5 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/ObjectCacheFile.h | 1 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/ObjectCacheStore.cc | 1 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/ObjectCacheStore.h | 3 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/SimplePolicy.cc | 5 | ||||
-rw-r--r-- | src/tools/immutable_object_cache/SimplePolicy.h | 2 |
11 files changed, 9 insertions, 45 deletions
diff --git a/src/tools/immutable_object_cache/CacheClient.cc b/src/tools/immutable_object_cache/CacheClient.cc index c3070a8f533..414c9cbc4cd 100644 --- a/src/tools/immutable_object_cache/CacheClient.cc +++ b/src/tools/immutable_object_cache/CacheClient.cc @@ -9,9 +9,6 @@ #define dout_prefix *_dout << "ceph::cache::CacheClient: " << this << " " \ << __func__ << ": " - -using boost::asio::local::stream_protocol; - namespace ceph { namespace immutable_obj_cache { diff --git a/src/tools/immutable_object_cache/CacheClient.h b/src/tools/immutable_object_cache/CacheClient.h index dca081cbf5a..26162c45f82 100644 --- a/src/tools/immutable_object_cache/CacheClient.h +++ b/src/tools/immutable_object_cache/CacheClient.h @@ -1,8 +1,8 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab -#ifndef CEPH_CACHE_CLIENT_H -#define CEPH_CACHE_CLIENT_H +#ifndef CEPH_CACHE_CACHE_CLIENT_H +#define CEPH_CACHE_CACHE_CLIENT_H #include <atomic> #include <boost/asio.hpp> diff --git a/src/tools/immutable_object_cache/CacheController.h b/src/tools/immutable_object_cache/CacheController.h index 08fed8b37d1..427ad5cc80f 100644 --- a/src/tools/immutable_object_cache/CacheController.h +++ b/src/tools/immutable_object_cache/CacheController.h @@ -1,23 +1,14 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab -#ifndef CEPH_CACHE_CONTROLLER_H -#define CEPH_CACHE_CONTROLLER_H +#ifndef CEPH_CACHE_CACHE_CONTROLLER_H +#define CEPH_CACHE_CACHE_CONTROLLER_H -#include "common/Formatter.h" -#include "common/admin_socket.h" -#include "common/debug.h" -#include "common/errno.h" #include "common/ceph_context.h" -#include "common/Mutex.h" #include "common/WorkQueue.h" -#include "include/rados/librados.hpp" -#include "include/ceph_assert.h" #include "CacheServer.h" #include "ObjectCacheStore.h" -#include <thread> - namespace ceph { namespace immutable_obj_cache { diff --git a/src/tools/immutable_object_cache/CacheServer.cc b/src/tools/immutable_object_cache/CacheServer.cc index 5d94b069c05..3e0f4c8a34d 100644 --- a/src/tools/immutable_object_cache/CacheServer.cc +++ b/src/tools/immutable_object_cache/CacheServer.cc @@ -1,6 +1,7 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab +#include <boost/bind.hpp> #include "common/debug.h" #include "common/ceph_context.h" #include "CacheServer.h" @@ -12,8 +13,6 @@ << __func__ << ": " -using boost::asio::local::stream_protocol; - namespace ceph { namespace immutable_obj_cache { diff --git a/src/tools/immutable_object_cache/CacheServer.h b/src/tools/immutable_object_cache/CacheServer.h index 05b31c5b3ce..a0174451521 100644 --- a/src/tools/immutable_object_cache/CacheServer.h +++ b/src/tools/immutable_object_cache/CacheServer.h @@ -1,20 +1,12 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab -#ifndef CEPH_CACHE_SERVER_H -#define CEPH_CACHE_SERVER_H - -#include <cstdio> -#include <iostream> -#include <array> -#include <memory> -#include <string> -#include <boost/bind.hpp> +#ifndef CEPH_CACHE_CACHE_SERVER_H +#define CEPH_CACHE_CACHE_SERVER_H + #include <boost/asio.hpp> #include <boost/asio/error.hpp> -#include <boost/algorithm/string.hpp> -#include "include/ceph_assert.h" #include "SocketCommon.h" #include "CacheSession.h" diff --git a/src/tools/immutable_object_cache/CacheSession.h b/src/tools/immutable_object_cache/CacheSession.h index 76a8543b340..989e1181ca2 100644 --- a/src/tools/immutable_object_cache/CacheSession.h +++ b/src/tools/immutable_object_cache/CacheSession.h @@ -4,17 +4,12 @@ #ifndef CEPH_CACHE_SESSION_H #define CEPH_CACHE_SESSION_H -#include <iostream> -#include <string> #include <boost/bind.hpp> #include <boost/asio.hpp> #include <boost/asio/error.hpp> -#include <boost/algorithm/string.hpp> -#include "include/ceph_assert.h" #include "SocketCommon.h" - using boost::asio::local::stream_protocol; using boost::asio::io_service; diff --git a/src/tools/immutable_object_cache/ObjectCacheFile.h b/src/tools/immutable_object_cache/ObjectCacheFile.h index a8fe4350f40..7d878390472 100644 --- a/src/tools/immutable_object_cache/ObjectCacheFile.h +++ b/src/tools/immutable_object_cache/ObjectCacheFile.h @@ -7,7 +7,6 @@ #include "include/Context.h" #include "include/buffer_fwd.h" #include "common/ceph_context.h" -#include <sys/mman.h> #include <string> diff --git a/src/tools/immutable_object_cache/ObjectCacheStore.cc b/src/tools/immutable_object_cache/ObjectCacheStore.cc index 7894266bdfd..6b3dbae79dc 100644 --- a/src/tools/immutable_object_cache/ObjectCacheStore.cc +++ b/src/tools/immutable_object_cache/ObjectCacheStore.cc @@ -1,7 +1,6 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab -#include "include/Context.h" #include "ObjectCacheStore.h" #include "Utils.h" #include <experimental/filesystem> diff --git a/src/tools/immutable_object_cache/ObjectCacheStore.h b/src/tools/immutable_object_cache/ObjectCacheStore.h index e8c44f0fee8..d51ce326f36 100644 --- a/src/tools/immutable_object_cache/ObjectCacheStore.h +++ b/src/tools/immutable_object_cache/ObjectCacheStore.h @@ -4,11 +4,8 @@ #ifndef CEPH_CACHE_OBJECT_CACHE_STORE_H #define CEPH_CACHE_OBJECT_CACHE_STORE_H -#include "common/debug.h" -#include "common/errno.h" #include "common/ceph_context.h" #include "common/Mutex.h" -#include "include/Context.h" #include "include/rados/librados.hpp" #include "ObjectCacheFile.h" diff --git a/src/tools/immutable_object_cache/SimplePolicy.cc b/src/tools/immutable_object_cache/SimplePolicy.cc index 119b8c76b06..86936b2f3ae 100644 --- a/src/tools/immutable_object_cache/SimplePolicy.cc +++ b/src/tools/immutable_object_cache/SimplePolicy.cc @@ -1,12 +1,9 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab +#include "common/debug.h" #include "SimplePolicy.h" -#include <vector> -#include <unordered_map> -#include <string> - #define dout_context g_ceph_context #define dout_subsys ceph_subsys_immutable_obj_cache #undef dout_prefix diff --git a/src/tools/immutable_object_cache/SimplePolicy.h b/src/tools/immutable_object_cache/SimplePolicy.h index a75bf3ca3d7..7dce7840fd3 100644 --- a/src/tools/immutable_object_cache/SimplePolicy.h +++ b/src/tools/immutable_object_cache/SimplePolicy.h @@ -7,11 +7,9 @@ #include "common/ceph_context.h" #include "common/RWLock.h" #include "common/Mutex.h" -#include "common/debug.h" #include "include/lru.h" #include "Policy.h" -#include <vector> #include <unordered_map> #include <string> |