From 386ca207928b9346590329e12e19105eac892d97 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 3 Aug 2022 17:15:59 +0100 Subject: [PATCH] combine: fix errors with backends shutting down while in use Before this patch backends could be shutdown when they fell out of the cache when they were in use with combine. 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 gets the combine remote to pin them until it is finished. See: https://forum.rclone.org/t/rclone-combine-upload-failed-batcher-is-shutting-down/32168 --- backend/combine/combine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/combine/combine.go b/backend/combine/combine.go index a65192647..bae4bd8a1 100644 --- a/backend/combine/combine.go +++ b/backend/combine/combine.go @@ -145,6 +145,7 @@ func (f *Fs) newUpstream(ctx context.Context, dir, remote string) (*upstream, er dir: dir, pathAdjustment: newAdjustment(f.root, dir), } + cache.PinUntilFinalized(u.f, u) return u, nil }