From 684dbe0e9d6a671ed84920748b76bfd2675df889 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 2 Dec 2019 16:03:33 +0000 Subject: [PATCH] local: make source file being updated errors be NoLowLevelRetry errors #3777 --- backend/local/local.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/local/local.go b/backend/local/local.go index 2b421a434..12e52b31d 100644 --- a/backend/local/local.go +++ b/backend/local/local.go @@ -820,10 +820,10 @@ func (file *localOpenFile) Read(p []byte) (n int, err error) { return 0, errors.Wrap(err, "can't read status of source file while transferring") } if file.o.size != fi.Size() { - return 0, errors.Errorf("can't copy - source file is being updated (size changed from %d to %d)", file.o.size, fi.Size()) + return 0, fserrors.NoLowLevelRetryError(errors.Errorf("can't copy - source file is being updated (size changed from %d to %d)", file.o.size, fi.Size())) } if !file.o.modTime.Equal(fi.ModTime()) { - return 0, errors.Errorf("can't copy - source file is being updated (mod time changed from %v to %v)", file.o.modTime, fi.ModTime()) + return 0, fserrors.NoLowLevelRetryError(errors.Errorf("can't copy - source file is being updated (mod time changed from %v to %v)", file.o.modTime, fi.ModTime())) } }