mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
Remove expensive hot path assert
This commit is contained in:
@@ -296,14 +296,6 @@ impl Sorter {
|
||||
|
||||
fn next_from_chunk_heap(&mut self) -> Result<IOResult<Option<SortableImmutableRecord>>> {
|
||||
// Make sure all chunks read at least one record into their buffer.
|
||||
turso_assert!(
|
||||
!self.chunks.iter().any(|chunk| matches!(
|
||||
*chunk.io_state.read().unwrap(),
|
||||
SortedChunkIOState::WaitingForRead
|
||||
)),
|
||||
"chunks should have been read"
|
||||
);
|
||||
|
||||
if let Some((next_record, next_chunk_idx)) = self.chunk_heap.pop() {
|
||||
// TODO: blocking will be unnecessary here with IO completions
|
||||
let io = self.io.clone();
|
||||
|
||||
Reference in New Issue
Block a user