mirror of
https://github.com/minio/minio.git
synced 2025-04-16 08:58:11 -04:00
fix: auto update crawler meta version
PR 038bcd907938c2a9a5f36ceb031e9fe11213cdc9 introduced version '3', we need to make sure that we do not print an unexpected error instead log a message to indicate we will auto update the version.
This commit is contained in:
parent
4a564336fe
commit
dc819afa44
@ -549,7 +549,7 @@ func (d *dataUsageCache) deserialize(r io.Reader) error {
|
|||||||
return io.ErrUnexpectedEOF
|
return io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
switch b[0] {
|
switch b[0] {
|
||||||
case 1:
|
case 1, 2:
|
||||||
return errors.New("cache version deprecated (will autoupdate)")
|
return errors.New("cache version deprecated (will autoupdate)")
|
||||||
case dataUsageCacheVer:
|
case dataUsageCacheVer:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user