lmdb-zero icon indicating copy to clipboard operation
lmdb-zero copied to clipboard

Cannot open environment on windows

Open Horusiath opened this issue 5 years ago • 0 comments

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.

Horusiath avatar May 21 '20 19:05 Horusiath