mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
feat: bring new HDD related performance enhancements (#18239)
Optionally allows customers to enable - Enable an external cache to catch GET/HEAD responses - Enable skipping disks that are slow to respond in GET/HEAD when we have already achieved a quorum
This commit is contained in:
@@ -239,6 +239,16 @@ type FileInfo struct {
|
||||
Versioned bool `msg:"vs"`
|
||||
}
|
||||
|
||||
// ShallowCopy - copies minimal information for READ MRF checks.
|
||||
func (fi FileInfo) ShallowCopy() (n FileInfo) {
|
||||
n.Volume = fi.Volume
|
||||
n.Name = fi.Name
|
||||
n.VersionID = fi.VersionID
|
||||
n.Deleted = fi.Deleted
|
||||
n.Erasure = fi.Erasure
|
||||
return
|
||||
}
|
||||
|
||||
// WriteQuorum returns expected write quorum for this FileInfo
|
||||
func (fi FileInfo) WriteQuorum(dquorum int) int {
|
||||
if fi.Deleted {
|
||||
|
||||
Reference in New Issue
Block a user