Skip to content

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented Feb 26, 2025

In this PR, we accept nested read-only transactions and no longer count them to accept more than one. We free/close the child transactions only once the last one has been dropped.

We use atomics to implement a reference-counted system that correctly drops the read transactions and the pghead only once. This is not C99 but C11-compatible.

Warning

We found a memory leak in this PR. We need to take time to investigate the matter and fix it.

We accept nested read-only transactions and no longer count them to
accept more than a single one. We make sure that we free/close the
child transactions only once the last one has been dropped.

We use atomics to implement a reference-counted system to correctly
drop the read transactions and the pghead only once. This is not C99
but C11-compatible.
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.

1 participant