mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 05:30:24 +03:00
attempt to real resolve when there is a quorum failure on reads (#14613)
This commit is contained in:
@@ -281,6 +281,13 @@ func (d *naughtyDisk) ReadAll(ctx context.Context, volume string, path string) (
|
||||
return d.disk.ReadAll(ctx, volume, path)
|
||||
}
|
||||
|
||||
func (d *naughtyDisk) ReadXL(ctx context.Context, volume string, path string, readData bool) (rf RawFileInfo, err error) {
|
||||
if err := d.calcError(); err != nil {
|
||||
return rf, err
|
||||
}
|
||||
return d.disk.ReadXL(ctx, volume, path, readData)
|
||||
}
|
||||
|
||||
func (d *naughtyDisk) VerifyFile(ctx context.Context, volume, path string, fi FileInfo) error {
|
||||
if err := d.calcError(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user