mirror of
https://github.com/minio/minio.git
synced 2025-11-30 13:42:53 -05:00
rest/storage: Remove racy LastError usage (#8817)
instead perform a liveness check call to verify if server is online and print relevant errors. Also introduce a StorageErr string error type instead of errors.New() deprecate usage of VerifyFileError, DeleteFileError for gob, change in datastructure also requires bump in storage REST version to v13. Fixes #8811
This commit is contained in:
committed by
kannappanr
parent
9be7066715
commit
0879a4f743
@@ -313,13 +313,6 @@ func (*posix) Hostname() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (s *posix) LastError() error {
|
||||
if atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {
|
||||
return errFaultyDisk
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *posix) Close() error {
|
||||
close(s.stopUsageCh)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user