8000 Cannot open environment on windows · Issue #29 · AltSysrq/lmdb-zero · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot open environment on windows #29
Open
@Horusiath

Description

@Horusiath

I'm using lmdb-zero = "0.4.4". I've tried to compile and run it on Windows 10, however when trying to open the env on the sample file, when using following code:

{
    std::fs::OpenOptions::new().read(true).write(true).create(true).open("test.db").unwrap();
}
let mut env_builder = lmdb_zero::EnvBuilder::new()?;
env_builder.set_mapsize(100 * 1024 * 1024)?;
let env = unsafe {
    env_builder.open("test.db", lmdb_zero::open::Flags::empty(), 0o600)
}?;

I'm getting this error:

---- server::test::test_update stdout ----
thread 'server::test::test_update' panicked at 'called `Result::unwrap()` on an `Err` value: StoreError(Error::Code(3, 'The system cannot find the path specified.
'))', src\server.rs:115:26

The file is created without issues (OpenOptions sample works successfully there) and failure points to the last line of the example.

I'm using cmake version 3.17.1 and rustc 1.45.0-nightly (a74d1862d 2020-05-14).

I'm happy to answer any questions that would help to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0