Commit 3b49ebf
committed
lsm/core: clear two-level data iterator before reload
If `_data_iter_fn` throws (e.g. a cloud-backed SST open fails),
`_data_iter` previously retained the iterator from the prior block,
leaving valid() reporting true against stale state. Null it before the
await so the iterator is observably invalid on a thrown future.1 parent b59c691 commit 3b49ebf
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | | - | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments