diff options
author | Akanksha Mahajan <43301668+akankshamahajan15@users.noreply.github.com> | 2023-10-16 15:14:58 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2023-10-16 15:14:58 -0700 |
commit | 018eede679f6df74f78b158caf21f76c00c1bad7 (patch) | |
tree | 726a606db7dae451cbbd565d2cb3acab4c61d8d9 /file/file_prefetch_buffer.cc | |
parent | 25d4379cc856d16bcb7c2768c957062675879b7a (diff) |
Remove assertion from PrefetchAsync (#11965)
Summary:
Remove assertion from PrefetchAsync (roundup_len2 >= alignment) as for non direct_io, buffer size can be less than alignment resulting in assertion.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/11965
Test Plan: Ran the issue causing db_stress without this assertion and the verification completes successfully.
Reviewed By: anand1976
Differential Revision: D50328955
Pulled By: akankshamahajan15
fbshipit-source-id: 65f55ca230d2bbc63f4e2cc34c7273b22b515879
Diffstat (limited to 'file/file_prefetch_buffer.cc')
-rw-r--r-- | file/file_prefetch_buffer.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/file/file_prefetch_buffer.cc b/file/file_prefetch_buffer.cc index f09e57033..70338d5b5 100644 --- a/file/file_prefetch_buffer.cc +++ b/file/file_prefetch_buffer.cc @@ -938,8 +938,6 @@ Status FilePrefetchBuffer::PrefetchAsync(const IOOptions& opts, roundup_end2 = Roundup(rounddown_start2 + prefetch_size, alignment); uint64_t roundup_len2 = roundup_end2 - rounddown_start2; - assert(roundup_len2 >= alignment); - CalculateOffsetAndLen(alignment, rounddown_start2, roundup_len2, second, false, chunk_len2); assert(chunk_len2 == 0); |