integrity check: check index root pages too

we had code in the integrity check state machine for indexes, but
index root pages were never added to the list to check.
This commit is contained in:
Jussi Saurio
2025-10-07 11:34:25 +03:00
parent f78103cafa
commit 603b7121de

View File

@@ -16,6 +16,11 @@ pub fn translate_integrity_check(
for table in schema.tables.values() {
if let crate::schema::Table::BTree(table) = table.as_ref() {
root_pages.push(table.root_page);
if let Some(indexes) = schema.indexes.get(table.name.as_str()) {
for index in indexes.iter() {
root_pages.push(index.root_page);
}
}
};
}
let message_register = program.alloc_register();