MCPcopy
hub / github.com/cubefs/cubefs / GetBids

Function GetBids

blobstore/blobnode/work_shard_getter.go:270–276  ·  view source on GitHub ↗

GetBids returns bids

(shardMetas []*ShardInfoSimple)

Source from the content-addressed store, hash-verified

268
269// GetBids returns bids
270func GetBids(shardMetas []*ShardInfoSimple) []proto.BlobID {
271 bids := make([]proto.BlobID, len(shardMetas))
272 for i, info := range shardMetas {
273 bids[i] = info.Bid
274 }
275 return bids
276}

Callers 5

RecoverShardsMethod · 0.85
testDirectGetShardFunction · 0.85
testRepairByLocalStripeFunction · 0.85
testRepairByGlobalStripeFunction · 0.85

Calls

no outgoing calls

Tested by 4

testDirectGetShardFunction · 0.68
testRepairByLocalStripeFunction · 0.68
testRepairByGlobalStripeFunction · 0.68