Skip to content

File::lock() and related functions are unsupported on some platforms #225

Description

@s-cerevisiae

Describe the bug
std file-locking APIs are not supported on some platforms like Android. Creating databases always returns kind: Unsupported IOError, making fjall 3.0.0 unusable on these platforms.

To Reproduce
Steps to reproduce the behavior:

  1. Run Database::builder("foo").open().unwrap() on platforms like Android
  2. It errors out with Io(Error { kind: Unsupported, message: "try_lock() not supported" })

Expected behavior
It should still be possible to create and load databases on these platforms despite file locking is currently not supported there.

Additional context
Maybe a valid behavior is to skip locking and log the event when locking is unsupported?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions