From 9a0a2c4edf60832f8ef6745a72913474f7a9b8ad Mon Sep 17 00:00:00 2001 From: Andrew Chang Date: Fri, 6 Dec 2024 15:48:34 -0800 Subject: [PATCH] Probably only need this for now --- file/file_prefetch_buffer.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/file/file_prefetch_buffer.cc b/file/file_prefetch_buffer.cc index 9566a9c91d5..a500d38834b 100644 --- a/file/file_prefetch_buffer.cc +++ b/file/file_prefetch_buffer.cc @@ -858,7 +858,7 @@ bool FilePrefetchBuffer::TryReadFromCacheUntracked( buf = overlap_buf_; } if (offset < buf->offset_) { - fprintf(stderr, + fprintf(stdout, "Requested offset %" PRIu64 " is less than buffer offset %" PRIu64 ". UseFSBuffer(reader)=%d\n", offset, buf->offset_, UseFSBuffer(reader)); @@ -866,14 +866,6 @@ bool FilePrefetchBuffer::TryReadFromCacheUntracked( return false; } uint64_t offset_in_buffer = offset - buf->offset_; - if (buf->CurrentSize() - offset_in_buffer < n) { - fprintf(stderr, - "Insufficient room in buffer. Only have %" PRIu64 - " but need %lu. UseFSBuffer(reader)=%d\n", - buf->CurrentSize() - offset_in_buffer, n, UseFSBuffer(reader)); - assert(false); - return false; - } *result = Slice(buf->buffer_.BufferStart() + offset_in_buffer, n); if (prefetched) { readahead_size_ = std::min(max_readahead_size_, readahead_size_ * 2);