commit | 604edd10e28e144c57826630b1d92ab41a9377b9 | [log] [tgz] |
---|---|---|
author | Robert Newson <rnewson@apache.org> | Thu Jan 19 23:12:00 2017 +0000 |
committer | Robert Newson <rnewson@apache.org> | Thu Jan 19 23:12:36 2017 +0000 |
tree | ccfa669ab6aea48875601444b75498c2bf5b3eee | |
parent | 3188736c62a5d5c0a2e3079bb41fb95f94d295cf [diff] |
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