#include <list>
#include <gtest/gtest.h>
+#include "include/Context.h"
#include "tools/immutable_object_cache/SimplePolicy.h"
using namespace ceph::immutable_obj_cache;
#define dout_prefix *_dout << "ceph::cache::CacheClient: " << this << " " \
<< __func__ << ": "
-
-using boost::asio::local::stream_protocol;
-
namespace ceph {
namespace immutable_obj_cache {
// -*- 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>
// -*- 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 {
// -*- 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"
<< __func__ << ": "
-using boost::asio::local::stream_protocol;
-
namespace ceph {
namespace immutable_obj_cache {
// -*- 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"
#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;
#include "include/Context.h"
#include "include/buffer_fwd.h"
#include "common/ceph_context.h"
-#include <sys/mman.h>
#include <string>
// -*- 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>
#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"
// -*- 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
#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>