rnewson opened a new pull request, #6015: URL: https://github.com/apache/couchdb/pull/6015
## Overview Manually tracking is error-prone. e.g, file:write might return `ok` but not have written all bytes due to buffering. couch_file advances the eof anyway, so the results of subsequent writes before a datasync will return the wrong position. calling file:position/2 is very cheap, so just do that when we're writing. ## Testing recommendations Covered by eunit tests. ## Related Issues or Pull Requests N/A ## Checklist - [x] This is my own work, I did not use AI, LLM's or similar technology - [x] Code is written and works correctly - [ ] Changes are covered by tests - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini` - [ ] Documentation changes were made in the `src/docs` folder - [ ] Documentation changes were backported (separated PR) to affected branches -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
