Speed up ondisk blockstore by not storing a created block first

This commit is contained in:
Sebastian Messmer 2015-04-10 21:51:25 +02:00
parent 495e458c25
commit afce75b461

View File

@ -69,7 +69,6 @@ unique_ptr<OnDiskBlock> OnDiskBlock::CreateOnDisk(const bf::path &rootdir, const
auto block = unique_ptr<OnDiskBlock>(new OnDiskBlock(key, filepath, size)); auto block = unique_ptr<OnDiskBlock>(new OnDiskBlock(key, filepath, size));
block->_fillDataWithZeroes(); block->_fillDataWithZeroes();
block->_storeToDisk();
return block; return block;
} }