public:
explicit RandomAccessCacheFile(Env* const env, const std::string& dir,
const uint32_t cache_id,
- const shared_ptr<Logger>& log)
+ const std::shared_ptr<Logger>& log)
: BlockCacheFile(env, dir, cache_id), log_(log) {}
virtual ~RandomAccessCacheFile() {}
IO& operator=(const IO&) = default;
size_t Size() const { return sizeof(IO); }
- WritableFile* file_ = nullptr; // File to write to
- CacheWriteBuffer* const buf_ = nullptr; // buffer to write
- uint64_t file_off_ = 0; // file offset
- bool signal_ = false; // signal to exit thread loop
- std::function<void()> callback_; // Callback on completion
+ WritableFile* file_ = nullptr; // File to write to
+ CacheWriteBuffer* buf_ = nullptr; // buffer to write
+ uint64_t file_off_ = 0; // file offset
+ bool signal_ = false; // signal to exit thread loop
+ std::function<void()> callback_; // Callback on completion
};
explicit ThreadedWriter(PersistentCacheTier* const cache, const size_t qdepth,