Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open environment on windows #29

Open
Horusiath opened this issue May 21, 2020 · 0 comments
Open

Cannot open environment on windows #29

Horusiath opened this issue May 21, 2020 · 0 comments

Comments

@Horusiath
Copy link

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.

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

No branches or pull requests

1 participant