Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Objecter &objecter;
Client &client;
Finisher &finisher;
- TTLCache<string, PyObject*> ttl_cache;
+ TTLCache<std::string, PyObject*> ttl_cache;
public:
Finisher cmd_finisher;
private:
DaemonServer &server;
PyModuleRegistry &py_module_registry;
- map<std::string,ProgressEvent> progress_events;
+ std::map<std::string,ProgressEvent> progress_events;
mutable ceph::mutex lock = ceph::make_mutex("ActivePyModules::lock");
#include "PyUtil.h"
-using namespace std;
-
template <class Key, class Value> class Cache {
private:
std::atomic<uint64_t> hits, misses;
unsigned int capacity;
Cache(unsigned int size = UINT16_MAX) : hits{0}, misses{0}, capacity{size} {};
std::map<Key, Value> content;
- std::vector<string> allowed_keys = {"osd_map", "pg_dump", "pg_stats"};
+ std::vector<std::string> allowed_keys = {"osd_map", "pg_dump", "pg_stats"};
void mark_miss() {
misses++;