harbor/src/pkg/blob
Wang Yan ad47d2f444
fix upgrade issue (#12857)
fixes #12849

1, gives a default value to blob status in the migration script, and use none to replace the empty string as
the StatusNone, that will more readable on debugging failure.

2, GC jobs marks all of blobs as StatusDelete in the mark phase, but if encounter any failure in the sweep phase,
GC job will quite and all of blobs are in StatusDelete. If user wants to execute the GC again, it will fail as the
StatusDelete cannot be marked as StatusDelete. So, add StatusDelete in the status map to make StatusDelete can be
marked as StatusDelete.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-24 16:08:15 +08:00
..
dao fix upgrade issue (#12857) 2020-08-24 16:08:15 +08:00
models fix upgrade issue (#12857) 2020-08-24 16:08:15 +08:00
manager_test.go fix blob deleting status issue (#12481) 2020-07-20 11:44:29 +08:00
manager.go fix blob deleting status issue (#12481) 2020-07-20 11:44:29 +08:00