mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-22 16:35:30 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user