Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udf: fix memory leak for libsql_wasm_engine_new #169

Merged
merged 1 commit into from
May 19, 2023

Conversation

psarna
Copy link
Contributor

@psarna psarna commented May 19, 2023

The leak was quite obvious - there was no destructor for the per-connection Wasm engine.

@psarna psarna requested a review from penberg May 19, 2023 10:24
The leak was quite obvious - there was no destructor
for the per-connection Wasm engine.
@penberg penberg merged commit 45e30ba into tursodatabase:main May 19, 2023
MarinPostma added a commit that referenced this pull request Oct 17, 2023
72: wal file improvements r=MarinPostma a=MarinPostma

this PR introduces some overall improvements to our custom WAL file format.

- The WAL file header is improved to contain more informartion:
    - the database UUID that the log is replicating
    - Fields like initial checksum, start_frame_index for log compaction
    - a magic number
- Each WAL frame is now preceded by a `WalFrameHeader`, that contains:
    - The running checksum of the pages, including the current page.
    - The id of the start_frame_index
    - the page_no of the of the page contained in the frame
    - size_after: 0 on non-commit frame, otherwise, equal to the size (in page), of the database after applying those frames. (passed to and from the `xFrame` call).
- Use of Zerocopy to serialize and deserialize frames



169: proto: encode uuid as string r=MarinPostma a=MarinPostma



191: Revert "Revert "fix db path"" r=MarinPostma a=MarinPostma

Reverts libsql/sqld#184

192: .gitignore: ignore the new data directory r=psarna a=psarna

./data.sqld/ directory is runtime-only, so let's ignore it.

Co-authored-by: ad hoc <[email protected]>
Co-authored-by: Piotr Sarna <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants