{"action":"created","issue":{"url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/18","labels_url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/18/comments","events_url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/18/events","html_url":"https://github.com/vhbit/lmdb-rs/issues/18","id":99102772,"number":18,"title":"Can't use EnvCreateFlags","user":{"login":"krakatoa","id":26900,"avatar_url":"https://avatars.githubusercontent.com/u/26900?v=3","gravatar_id":"","url":"https://api.github.com/users/krakatoa","html_url":"https://github.com/krakatoa","followers_url":"https://api.github.com/users/krakatoa/followers","following_url":"https://api.github.com/users/krakatoa/following{/other_user}","gists_url":"https://api.github.com/users/krakatoa/gists{/gist_id}","starred_url":"https://api.github.com/users/krakatoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakatoa/subscriptions","organizations_url":"https://api.github.com/users/krakatoa/orgs","repos_url":"https://api.github.com/users/krakatoa/repos","events_url":"https://api.github.com/users/krakatoa/events{/privacy}","received_events_url":"https://api.github.com/users/krakatoa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-05T02:36:24Z","updated_at":"2015-08-05T19:25:03Z","closed_at":"2015-08-05T19:24:01Z","body":"Hey! I have the following issue, when trying to create an environment with EnvCreateFlags, I get this error:\r\n```\r\nthread '<main>' panicked at 'error opening environment: 22: Invalid argument', src/main.rs:38\r\nAn unknown error occurred\r\n```\r\nCode extract is:\r\n```rust\r\nuse lmdb::core::{EnvCreateReadOnly};\r\nlet env_builder = EnvBuilder::new() \r\n  .map_size(256 * 1024 * 1024)      \r\n  .max_dbs(5)                       \r\n  .flags(EnvCreateReadOnly);        \r\nlet env = env_builder.open(&path, 0o664).unwrap();\r\n```\r\nDo you find anything wrong with that ?\r\nThanks !\r\n\r\nBtw, great lib! I tried to discover the issue by myself but I'm still learning Rust :)"},"comment":{"url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/comments/128118677","html_url":"https://github.com/vhbit/lmdb-rs/issues/18#issuecomment-128118677","issue_url":"https://api.github.com/repos/vhbit/lmdb-rs/issues/18","id":128118677,"user":{"login":"vhbit","id":140199,"avatar_url":"https://avatars.githubusercontent.com/u/140199?v=3","gravatar_id":"","url":"https://api.github.com/users/vhbit","html_url":"https://github.com/vhbit","followers_url":"https://api.github.com/users/vhbit/followers","following_url":"https://api.github.com/users/vhbit/following{/other_user}","gists_url":"https://api.github.com/users/vhbit/gists{/gist_id}","starred_url":"https://api.github.com/users/vhbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhbit/subscriptions","organizations_url":"https://api.github.com/users/vhbit/orgs","repos_url":"https://api.github.com/users/vhbit/repos","events_url":"https://api.github.com/users/vhbit/events{/privacy}","received_events_url":"https://api.github.com/users/vhbit/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T19:25:03Z","updated_at":"2015-08-05T19:25:03Z","body":"@xitep aha, thanks for a hint!"}}