Commit 232dd73
Note short-read bug fix in 4.1.0 changelog
The prior multi-chunk MEMORY load loop (introduced in 4.0.0 by
2a1fa7f, "Make buffers read-only for all paths") called
FileChannel.read(ByteBuffer) and trusted it to fully fill the
destination — a short read would have silently truncated the
in-memory database. The new readFully helper retries until each
chunk is full, so this is incidentally fixed. Worth noting in the
changelog so anyone investigating a >2GB MEMORY-mode corruption can
trace it back.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2624387 commit 232dd73
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments