1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 14:11:01 +00:00
serenity/Base/res/html
Jelle Raaijmakers 6601ff9d65 LibSQL: Redesign heap storage to support arbitrary amounts of data
Previously, `Heap` would store serialized data in blocks of 1024 bytes
regardless of the actual length. Data longer than 1024 bytes was
silently truncated causing database corruption.

This changes the heap storage to prefix every block with two new fields:
the total data size in bytes, and the next block to retrieve if the data
is longer than what can be stored inside a single block. By chaining
blocks together, we can store arbitrary amounts of data without needing
to change anything of the logic in the rest of LibSQL.

As part of these changes, the "free list" is also removed from the heap
awaiting an actual implementation: it was never used.

Note that this bumps the database version from 3 to 4, and as such
invalidates (deletes) any database opened with LibSQL that is not
version 4.
2023-04-23 18:08:17 -04:00
..
misc LibSQL: Redesign heap storage to support arbitrary amounts of data 2023-04-23 18:08:17 -04:00
tests LibWeb: Fix abspos flex container with height:auto getting zero height 2023-01-06 21:12:55 +01:00
error.html LibWeb: Fix error page icon outside of serenity 2023-01-18 14:46:13 +00:00