GitHub user rnewson opened a pull request:

    https://github.com/apache/couchdb-couch/pull/222

    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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-couch 3274-couch-file-eof

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch/pull/222.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #222
    
----
commit 604edd10e28e144c57826630b1d92ab41a9377b9
Author: Robert Newson <[email protected]>
Date:   2017-01-19T23:12:00Z

    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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to