Skip to content

Commit 4cf79b4

Browse files
authored
Fix fsck for avatar with VFS Swift (#4521)
2 parents 40adb5c + 2439e72 commit 4cf79b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

model/vfs/vfsswift/fsck_v3.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ func (sfs *swiftVFSV3) checkFiles(
9191
return nil, err
9292
}
9393
for _, obj := range objs {
94+
if obj.Name == "avatar" {
95+
continue
96+
}
9497
if strings.HasPrefix(obj.Name, "thumbs/") {
9598
objName := strings.TrimPrefix(obj.Name, "thumbs/")
9699
idx := strings.LastIndex(objName, "-")

0 commit comments

Comments
 (0)