1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibSQL: Remove Core::EventReceiver parent from SQL::Index

This relationship was only used to provide factory methods for the index
(and its BTree child).
This commit is contained in:
Timothy Flynn 2023-08-07 11:28:44 -04:00 committed by Tim Flynn
parent 1b40bf9783
commit 5ad78cab8d
5 changed files with 19 additions and 18 deletions

View file

@ -134,7 +134,7 @@ NonnullRefPtr<SQL::BTree> setup_btree(SQL::Serializer& serializer)
root_pointer = serializer.heap().request_new_block_index();
serializer.heap().set_user_value(0, root_pointer);
}
auto btree = SQL::BTree::construct(serializer, tuple_descriptor, true, root_pointer);
auto btree = MUST(SQL::BTree::create(serializer, tuple_descriptor, true, root_pointer));
btree->on_new_root = [&]() {
serializer.heap().set_user_value(0, btree->root());
};