diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.go index 3a8775222..4fa4b327d 100644 --- a/backend/googlephotos/googlephotos.go +++ b/backend/googlephotos/googlephotos.go @@ -1003,7 +1003,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op // Add upload to internal storage if pattern.isUpload { + o.fs.uploadedMu.Lock() o.fs.uploaded.AddEntry(o) + o.fs.uploadedMu.Unlock() } return nil }