Determine small objects on shard size (#11935)

Use shard size to determine when to inline data.

For unversioned objects, use 128K/shard and for versioned 16K thresholds.
This commit is contained in:
Klaus Post
2021-03-31 18:19:14 +02:00
committed by GitHub
parent 0d8c74358d
commit 4dcce17eb9
3 changed files with 13 additions and 9 deletions

View File

@@ -177,7 +177,7 @@ func TestListOnlineDisks(t *testing.T) {
}
object := "object"
data := bytes.Repeat([]byte("a"), smallFileThreshold*2)
data := bytes.Repeat([]byte("a"), smallFileThreshold*16)
z := obj.(*erasureServerPools)
erasureDisks := z.serverPools[0].sets[0].getDisks()
for i, test := range testCases {