Speed up ondisk blockstore by not storing a created block first
This commit is contained in:
parent
495e458c25
commit
afce75b461
@ -69,7 +69,6 @@ unique_ptr<OnDiskBlock> OnDiskBlock::CreateOnDisk(const bf::path &rootdir, const
|
||||
|
||||
auto block = unique_ptr<OnDiskBlock>(new OnDiskBlock(key, filepath, size));
|
||||
block->_fillDataWithZeroes();
|
||||
block->_storeToDisk();
|
||||
return block;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user