{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6917","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6917/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6917/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6917/events","html_url":"https://github.com/bitcoin/bitcoin/pull/6917","id":114361102,"number":6917,"title":"leveldb: Win32WritableFile without memory mapping","user":{"login":"laanwj","id":126646,"avatar_url":"https://avatars.githubusercontent.com/u/126646?v=3","gravatar_id":"","url":"https://api.github.com/users/laanwj","html_url":"https://github.com/laanwj","followers_url":"https://api.github.com/users/laanwj/followers","following_url":"https://api.github.com/users/laanwj/following{/other_user}","gists_url":"https://api.github.com/users/laanwj/gists{/gist_id}","starred_url":"https://api.github.com/users/laanwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laanwj/subscriptions","organizations_url":"https://api.github.com/users/laanwj/orgs","repos_url":"https://api.github.com/users/laanwj/repos","events_url":"https://api.github.com/users/laanwj/events{/privacy}","received_events_url":"https://api.github.com/users/laanwj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/UTXO%20Db%20and%20Indexes","name":"UTXO Db and Indexes","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-10-30T21:43:14Z","updated_at":"2015-11-02T02:29:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6917","html_url":"https://github.com/bitcoin/bitcoin/pull/6917","diff_url":"https://github.com/bitcoin/bitcoin/pull/6917.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/6917.patch"},"body":"Use a simple Win32WritableFile, equivalent to PosixWritableFile in posix_env.cc\r\n\r\nThe goal is to solve leveldb corruption issues on windows - this issue has been reported many times, see #5865, #6727, #5610, ...\r\n\r\nIn my testing with this change I was unable to cause the database to be corrupted when crashing a windows laptop in various ways using [notmyfault](https://technet.microsoft.com/en-us/sysinternals/bb963901.aspx). Without the change it happened the first time I tried.\r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/152893891","html_url":"https://github.com/bitcoin/bitcoin/pull/6917#issuecomment-152893891","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6917","id":152893891,"user":{"login":"laanwj","id":126646,"avatar_url":"https://avatars.githubusercontent.com/u/126646?v=3","gravatar_id":"","url":"https://api.github.com/users/laanwj","html_url":"https://github.com/laanwj","followers_url":"https://api.github.com/users/laanwj/followers","following_url":"https://api.github.com/users/laanwj/following{/other_user}","gists_url":"https://api.github.com/users/laanwj/gists{/gist_id}","starred_url":"https://api.github.com/users/laanwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laanwj/subscriptions","organizations_url":"https://api.github.com/users/laanwj/orgs","repos_url":"https://api.github.com/users/laanwj/repos","events_url":"https://api.github.com/users/laanwj/events{/privacy}","received_events_url":"https://api.github.com/users/laanwj/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T02:29:49Z","updated_at":"2015-11-02T02:29:49Z","body":"> @laanwj We don't do small writes anyway, so I doubt an application-level cache would help.\r\n\r\nWe don't, but maybe leveldb does internally?"}}