You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int old_sz =0, new_sz =0;
while(_stream.next_in != nullptr && _stream.avail_in != 0) {
int st = BZ2_bzCompress(&_stream, BZ_FINISH);
switch (st) {
case BZ_STREAM_END:
break;
case BZ_FINISH_OK:
// No output space. Increase the output space by 20%.
// (Should we fail the compression since it expands the size?)
old_sz = output->size();
new_sz = (int)(output->size() * 1.2);
output->resize(new_sz);
// Set more output.
_stream.next_out = (char _)&(_output)[old_sz];
_stream.avail_out = new_sz - old_sz;
break;
case Z_BUF_ERROR:
default:
BZ2_bzCompressEnd(&_stream);
return false;
}
}
Activity
mdcallag commentedon Nov 17, 2013
And BZip2_Uncompress uses Z_OK and Z_BUF_ERROR which also come from zlib. Those references should be changed to BZ_* equivalents.
Fix BZip constants
igorcanadi commentedon Nov 19, 2013
Tnx Mark, I fixed the problem.
Prevent segfault because SizeUnderCompaction was called without any l…
Better stack trace in MAC
Disable pre-fetching of index and filter blocks for sst_dump_tool.
Fix a crash when compaction fails to open a file
Fix a crash when compaction fails to open a file
Merge pull request meta#8 from zhangjinpeng1987/zhangjinpeng/5.8
Merge pull request meta#8 from petermattis/pmattis/backport
Fix a bug in compaction reads causing checksum mismatches and asan er…
Fix a bug in compaction reads causing checksum mismatches and asan er…
70 remaining items
Fix assertion error by doing comparison with mutex (meta#9717)
Fix GetMergeOperands() heap-use-after-free on flushed memtable (meta#…
Fix stress test failure in ReadAsync. (meta#9824)
Revert "Add CompressedSecondaryCache into stress test" meta#10442 (me…
Fix the memory leak in db_stress tests that are caused by `FaultInjec…
Add missing synchronization in TestFSWritableFile (meta#10544)
Fix flaky test: `DBCompactionTest.WaitForCompactShutdownWhileWaiting` (…
Invalidate threadlocal SV before incrementing `super_version_number_` (…
Fix stack trace trimming with LLDB (meta#12101)
Fix AddressSanitizer container-overflow (meta#12722)
Fix heap-use-after-free in MultiCfIteratorImpl (meta#12784)
Deflake unit test `DBErrorHandlingFSTest.AtomicFlushNoSpaceError` (me…
Fix race in accessing MANIFEST number in crash test (meta#13603)
Fix use-after-free in BlockBasedTable after best-efforts recovery ret…
Fix incorrect input file expansion in SetupOtherFilesWithRoundRobinEx…