diff options
author | Jan de Visser <jan@de-visser.net> | 2021-07-13 13:47:08 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-21 22:03:30 +0200 |
commit | a5e28f2897cf0b93084e964334bc59ac6fd695c1 (patch) | |
tree | 26a25611423903ce9fad77566623a1e8a16e1945 /Userland/Libraries/LibSQL/HashIndex.h | |
parent | 9e225d2d05bbed76cd12004397105229c6f27708 (diff) | |
download | serenity-a5e28f2897cf0b93084e964334bc59ac6fd695c1.zip |
LibSQL: Make TupleDescriptor a shared pointer instead of a stack object
Tuple descriptors are basically the same for for example all rows in
a table. Makes sense to share them instead of copying them for every
single row.
Diffstat (limited to 'Userland/Libraries/LibSQL/HashIndex.h')
-rw-r--r-- | Userland/Libraries/LibSQL/HashIndex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSQL/HashIndex.h b/Userland/Libraries/LibSQL/HashIndex.h index ca933a1820..4c56706ee8 100644 --- a/Userland/Libraries/LibSQL/HashIndex.h +++ b/Userland/Libraries/LibSQL/HashIndex.h @@ -88,7 +88,7 @@ public: void list_hash(); private: - HashIndex(Heap&, TupleDescriptor const&, u32); + HashIndex(Heap&, NonnullRefPtr<TupleDescriptor> const&, u32); void expand(); void write_directory_to_write_ahead_log(); |