Skip to content
This repository was archived by the owner on Jun 17, 2019. It is now read-only.

Conversation

laanwj
Copy link
Member

@laanwj laanwj commented Nov 4, 2015

Use a straightforward Win32WritableFile for writing files, equivalent to PosixWritableFile in posix_env.cc, but using only the Win32 API.

The goal is to solve leveldb corruption issues on windows after crashes, which are frequently reported.

See bitcoin/bitcoin#6917

Use a straightforward Win32WritableFile for writing files, equivalent to
PosixWritableFile in posix_env.cc, but using only the Win32 API.

The goal is to solve leveldb corruption issues on windows after crashes, which
are frequently reported.
@gmaxwell
Copy link

gmaxwell commented Nov 4, 2015

utACK* (I don't consider myself at all familiar with leveldb internally, but this looks reasonable)

@laanwj
Copy link
Member Author

laanwj commented Nov 4, 2015

@sipa how do we handle merging here? Better to have a merge commit or just cherry-pick on it top?

Can you help with subtree-merging this back to bitcoin? I always get confused with git subtree.

@sipa
Copy link
Contributor

sipa commented Nov 4, 2015

I'll deal with it.

@sipa
Copy link
Contributor

sipa commented Nov 4, 2015

Tested ACK: this does not add any failing LevelDB unit tests when compiling with mingw and running under wine. A few of the corruption unit tests were already broken in this case, though.

@jgarzik
Copy link

jgarzik commented Nov 4, 2015

ut ACK

@sipa sipa merged commit 7aa105e into bitcoin-fork Nov 4, 2015
sipa added a commit that referenced this pull request Nov 4, 2015
7aa105e leveldb: Win32WritableFile without memory mapping (Wladimir J. van der Laan)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants