Commit 9fe8ec8
Kent Overstreet
bcachefs: Don't build aux search tree when still repairing node
bch2_btree_node_drop_keys_outside_node() will (re)build aux search
trees, because it's also called by topology repair.
bch2_btree_node_read_done() was calling it before validating individual
keys; invalid ones have to be dropped.
If we call drop_keys_outside_node() first, then
bch2_bset_build_aux_tree() doesn't run because the node already has an
aux search tree - which was invalidated by the repair.
Reported-by: [email protected]
Signed-off-by: Kent Overstreet <[email protected]>1 parent 6a1c432 commit 9fe8ec8
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | 1298 | | |
1302 | 1299 | | |
1303 | 1300 | | |
| |||
1335 | 1332 | | |
1336 | 1333 | | |
1337 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
| |||
0 commit comments