Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Dec 19, 2025

This is the first step to make in-memory only databases not touch the disk at all. Pending is an in-memory only sink for module logs.

Responsibility for the lock file is transferred to Durability, which means that only persistent databases opened for writing acquire the lock.

As a consequence, the Durability trait gains a close method that prevents further writes and drains the internal buffers, even when multiple Arc-pointers to the Durability exist.

Expected complexity level and risk

2

Testing

Covered by existing tests.

This is the first step to make in-memory only databases not touch the
disk at all. Pending is an in-memory only sink for module logs.

Responsibility for the lock file is transferred to `Durability`, which
means that only persistent databases opened for writing acquire the
lock.

As a consequence, the `Durability` trait gains a `close` method that
prevents further writes and drains the internal buffers, even when
multiple `Arc`-pointers to the `Durability` exist.
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