Skip to content

Commit

Permalink
Remove destructor assertion as it may not be comprehensive
Browse files Browse the repository at this point in the history
  • Loading branch information
anand1976 committed May 30, 2024
1 parent 326c0ea commit 3319afb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions table/block_fetcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@

namespace ROCKSDB_NAMESPACE {

BlockFetcher::~BlockFetcher() {
// If we successfully read the block into fs_buf_, and its
// compressed, and we haven't returned the compressed block to the caller,
// ensure that we keep fs_buf_ till destruction in case GetCompressedBlock()
// is called.
assert(!io_status_.ok() || compression_type_ == kNoCompression ||
!do_uncompress_ || !use_fs_scratch_ || fs_buf_);
}

inline void BlockFetcher::ProcessTrailerIfPresent() {
if (footer_.GetBlockTrailerSize() > 0) {
assert(footer_.GetBlockTrailerSize() == BlockBasedTable::kBlockTrailerSize);
Expand Down
2 changes: 0 additions & 2 deletions table/block_fetcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ class BlockFetcher {
}
}

~BlockFetcher();

IOStatus ReadBlockContents();
IOStatus ReadAsyncBlockContents();

Expand Down

0 comments on commit 3319afb

Please sign in to comment.