This repository has been archived by the owner on May 25, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset EOF if a partial write was possible
We can't know if one or more bytes were written by a file:write/2 call that results in an error and so it is not correct to leave #file.eof at its original value. In the event of error, use file:position(Fd, eof) to find the new, true length of the file, and update #file{} accordingly. COUCHDB-3274
- Loading branch information