Skip to content

stale lmdb reads on openbsd #383

Description

@wiesche89

On OpenBSD, nested LMDB transactions can read stale data after pages are written through the file descriptor.

Calling msync(..., MS_INVALIDATE) after the writes fixes it. MDB_WRITEMAP also avoids the issue, but cannot be used with nested write transactions.

Tested on OpenBSD 7.9 with heed 0.22.1 and lmdb-master-sys 0.2.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions