Summary: https://github.com/facebook/rocksdb/pull/6262 causes CLANG analyze to complain. Add assertion to suppress the warning. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6641 Test Plan: Run "clang analyze" and make sure it passes. Reviewed By: anand1976 Differential Revision: D20841722 fbshipit-source-id: 5fa6e0c5cfe7a822214c9b898a408df59d4fd2cd
This commit is contained in:
parent
e60ea7fe57
commit
00f8016b36
@ -781,10 +781,12 @@ void BlockBasedTableBuilder::Flush() {
|
||||
if (r->data_block.empty()) return;
|
||||
if (r->compression_opts.parallel_threads > 1 &&
|
||||
r->state == Rep::State::kUnbuffered) {
|
||||
ParallelCompressionRep::BlockRep* block_rep;
|
||||
ParallelCompressionRep::BlockRep* block_rep = nullptr;
|
||||
r->pc_rep->block_rep_pool.pop(block_rep);
|
||||
assert(block_rep != nullptr);
|
||||
|
||||
r->data_block.Finish();
|
||||
assert(block_rep->data);
|
||||
r->data_block.SwapAndReset(*(block_rep->data));
|
||||
|
||||
block_rep->contents = *(block_rep->data);
|
||||
|
Loading…
Reference in New Issue
Block a user