#include <string>
#include <vector>
+#include "file/random_access_file_reader.h"
+
#include "rocksdb/comparator.h"
#include "rocksdb/env.h"
#include "port/port.h"
#include "util/crc32c.h"
-#include "util/file_reader_writer.h"
#include "util/mutexlock.h"
// The io code path of persistent cache uses pipelined architecture
//
// Write IO code path :
//
-namespace rocksdb {
+namespace ROCKSDB_NAMESPACE {
class WriteableCacheFile;
struct BlockInfo;
protected:
port::RWMutex rwlock_; // synchronization mutex
- Env* const env_ = nullptr; // Env for IO
+ Env* const env_ = nullptr; // Env for OS
const std::string dir_; // Directory name
const uint32_t cache_id_; // Cache id for the file
std::list<BlockInfo*> block_infos_; // List of index entries mapping to the
std::vector<port::Thread> threads_;
};
-} // namespace rocksdb
+} // namespace ROCKSDB_NAMESPACE
#endif