Files
turso/core
Jussi Saurio 67f3e54782 Merge 'sorter: fix sorter panic on SortedChunkIOState::WaitingForRead' from Jussi Saurio
Closes #2165
The following sequence of events is possible:
- init_chunk_heap() called
- flush() gets called, and all chunks start writing to disk
- chunk A status is WriteComplete, so chunk.read() gets called on chunk
A
- chunk A sets its status to WaitingForRead
- some other chunk B is still in WaitingForWrite status after flush()
- for this reason, init_chunk_heap() returns IOResult::IO
- init_chunk_heap() is called again
- we panic because chunk A is in WaitingForRead status
So - we just allow WaitingForRead status in init_chunk_heap() instead.
This panic was caught thanks to Pedro's IO latency enhancement to the
sim!

Reviewed-by: Iaroslav Zeigerman (@izeigerman)

Closes #2166
2025-07-18 23:32:46 +03:00
..
2025-07-16 13:54:39 -03:00
2025-07-16 14:02:56 +04:00
2025-07-18 11:01:57 +03:00
2025-07-14 11:20:49 +04:00
2025-07-17 21:43:07 +03:00
2025-06-23 19:52:13 +01:00
2025-06-30 10:01:03 +03:00
2025-07-10 19:15:39 +08:00
2025-01-28 14:55:38 -05:00
2025-07-18 07:28:36 +02:00
2025-06-23 19:52:13 +01:00
2025-01-28 14:55:38 -05:00
2025-07-16 13:54:39 -03:00
2025-06-23 19:52:13 +01:00
2024-12-24 18:04:30 +01:00
2025-07-16 13:54:36 -03:00
2025-06-30 09:54:13 +03:00
2025-07-14 07:16:53 +02:00