TODOs
This commit is contained in:
parent
ffd9ada260
commit
f51f80e5eb
@ -62,7 +62,6 @@ unique_ptr<OnDiskBlock> OnDiskBlock::LoadFromDisk(const bf::path &rootdir, const
|
||||
}
|
||||
|
||||
unique_ptr<OnDiskBlock> OnDiskBlock::CreateOnDisk(const bf::path &rootdir, const Key &key, size_t size) {
|
||||
//TODO Only writeback, if data was actually changed (Block::write() was called)
|
||||
auto filepath = rootdir / key.ToString();
|
||||
if (bf::exists(filepath)) {
|
||||
return nullptr;
|
||||
|
@ -9,8 +9,6 @@
|
||||
|
||||
namespace blockstore {
|
||||
|
||||
//TODO Don't use string, but own class for keys? (better performance for all keys have same length)
|
||||
|
||||
class BlockStore {
|
||||
public:
|
||||
virtual ~BlockStore() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user