Repository navigation
Commit eed4d5d
committed
Fix test_fsm for COPY that no longer force-checkpoints under auto_checkpoint=false
Since ladybug commit 4ca1d6f5d ("Fix #755: COPY respects auto_checkpoint
setting"), COPY with auto_checkpoint=false leaves the data in the WAL
instead of checkpointing. The FSM tests captured used page ranges right
after COPY, at which point storage_info() reported in-memory chunks with
start_page_idx = INVALID (nothing was on disk yet), so after
drop + checkpoint there was nothing in the FSM to compare against and
all reclaim assertions failed.
Fix: checkpoint explicitly after COPY in the fixtures (and after the
re-copy in test_fsm_reclaim_node_table_recopy) so the tests measure real
on-disk page indices, preserving the tests' intent of verifying FSM
reclaim of persisted pages.1 parent 63904dd commit eed4d5d
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| |||
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
0 commit comments