- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ShouldInline (0.09 sec)
-
internal/config/storageclass/storage-class.go
default: if !sCfg.initialized { return -1 } return sCfg.Standard.Parity } } // ShouldInline returns true if the shardSize is worthy of inline // if versioned is true then we chosen 1/8th inline block size // to satisfy the same constraints. func (sCfg *Config) ShouldInline(shardSize int64, versioned bool) bool { if shardSize < 0 { return false } ConfigLock.RLock()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 12.3K bytes - Viewed (0) -
cmd/bucket-handlers.go
// The file or text content must be the last field in the form. // You cannot upload more than one file at a time. reader = part possibleShardSize := (r.ContentLength - headerLen) if globalStorageClass.ShouldInline(possibleShardSize, false) { // keep versioned false for this check var b bytes.Buffer n, err := io.Copy(&b, reader) if err != nil { apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0) -
cmd/erasure-object.go
tempErasureObj := pathJoin(uniqueID, fi.DataDir, partName) defer er.deleteAll(context.Background(), minioMetaTmpBucket, tempObj) var inlineBuffers []*bytes.Buffer if globalStorageClass.ShouldInline(erasure.ShardFileSize(data.ActualSize()), opts.Versioned) { inlineBuffers = make([]*bytes.Buffer, len(onlineDisks)) } shardFileSize := erasure.ShardFileSize(data.Size())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0)