forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NewAppendableFile for win32 environment
Implement the new NewAppendableFile call for the win32 environment. This is used to open an existing file for writing at the end, whereas NewWritableFile is supposed to delete/truncate if the file already exists. If the file does not exist the two are equivalent. Note that all writing in LevelDB is appending, so the only difference between a WritableFile and AppendableFile is in construction and opening. Thus, NewAppendableFile simply returns a WritableFile interface.
- Loading branch information
Showing
1 changed file
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters