rclone/lib
Nick Craig-Wood 919e28b8bf lib/cache: fix alias backend shutting down too soon
Before this patch, when an alias backend was created it would be
renamed to be canonical and in the process Shutdown would be called on
it. This was particularly noticeable with the dropbox backend which
gave this error when uploading files after the backend was Shutdown.

    Failed to copy: upload failed: batcher is shutting down

This patch fixes the cache Rename code not to finalize objects if the
object that is being overwritten is the same as the existing object.

See: https://forum.rclone.org/t/upload-failed-batcher-is-shutting-down/33900
2022-11-09 16:29:23 +00:00
..
atexit build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
bucket build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
buildinfo build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
cache lib/cache: fix alias backend shutting down too soon 2022-11-09 16:29:23 +00:00
daemonize build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
dircache all: fix spelling across the project 2022-08-30 11:16:26 +02:00
encoder Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
env docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
errors build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
exitcode cmd: Move exit status codes to separate package 2021-07-07 17:59:26 +01:00
file Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
http Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
israce build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
jwtutil Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
kv build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mmap build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
oauthutil build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
pacer build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
plugin Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
pool test: Don't run unreliable tests on CI #4171 2020-06-15 21:34:37 +01:00
random Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
ranges Spelling fixes 2020-10-14 15:21:31 +01:00
readers Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
rest backend/http: support content-range response header 2022-11-08 13:04:17 +00:00
structs staticcheck: ignore deprecations that are not relevant 2022-07-04 11:24:59 +02:00
terminal fs/config, lib/terminal: use golang.org/x/term 2022-04-01 12:48:18 +01:00
version Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00