Skip to content

The sync-read-txn feature of heed all the v0.10 is unsound #1755

@Kerollmops

Description

@Kerollmops

A contributor recently discovered that heed's sync-read-txn feature is unsound and should not exist. This feature was implementing Sync on the RoTxn struct, but in fact, it should have only implemented Send. I explained the different implications in an issue comment.

I replaced this feature with the correct read-txn-no-tls, which makes the RoTxn: Send. According to the LMDB documentation and Howard Chu's comments, it is correct to do that. Unfortunately, this change is not yet available as I am working on a big refactor. However, it will be available in v0.20.0.

What should I do? Should I yank all the heed versions even if only a specific feature is affected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnsoundInformational / Unsound

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions