mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Add compression buffer for synchronous compression
This commit is contained in:
parent
f5d8bce2bb
commit
77dda1c039
@ -68,7 +68,7 @@ CompressedFile::CompressedFile( std::string pFilename, int pMode, size_t n_threa
|
||||
blocksize = c_cacheBuffersize;
|
||||
writeHeader();
|
||||
hotCache.reset(new LRUMemCache(blocksize, c_ncacheItems, n_threads));
|
||||
initCompressedBuffers(n_threads);
|
||||
initCompressedBuffers(n_threads + 1);
|
||||
}
|
||||
|
||||
if(hotCache.get())
|
||||
@ -93,7 +93,7 @@ CompressedFile::CompressedFile(IFile* file, bool openExisting, bool readOnly, si
|
||||
blocksize = c_cacheBuffersize;
|
||||
writeHeader();
|
||||
hotCache.reset(new LRUMemCache(blocksize, c_ncacheItems, n_threads));
|
||||
initCompressedBuffers(n_threads);
|
||||
initCompressedBuffers(n_threads + 1);
|
||||
}
|
||||
if(hotCache.get()!=nullptr)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user