mirror of
https://github.com/rclone/rclone.git
synced 2026-09-12 22:24:25 -04:00
When rclone sync replaced an existing file, it called Update which pruned the old hash but never computed or stored the new one. This left the file with no hash entry in the bolt DB. This applies the same hashing logic in Put to Update: compute hashes during the transfer via a hashingReader and store them afterwards. The common hash-wrapping and hash-storing logic was extracted into a function. Fixes #9308