rclone/lib
Nick Craig-Wood 91afa14d28 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:30:33 +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:30:33 +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 build: add package comments to silence revive linter 2022-08-28 13:43:51 +02: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 build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
http httplib: Add --xxx-min-tls-version option to select minimum tls values for HTTP servers 2022-10-19 17:13:12 +01:00
israce build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
jwtutil all: fix spelling across the project 2022-08-30 11:16:26 +02: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 build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01: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 build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
rest all: fix spelling across the project 2022-08-30 11:16:26 +02: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