MCPcopy Create free account
hub / github.com/ethstorage/es-node / ReadMeta

Method ReadMeta

ethstorage/data_shard.go:419–426  ·  view source on GitHub ↗
(kvIdx uint64)

Source from the content-addressed store, hash-verified

417}
418
419func (ds *DataShard) ReadMeta(kvIdx uint64) ([]byte, error) {
420 for _, df := range ds.dataFiles {
421 if df.ContainsKv(kvIdx) {
422 return df.ReadMeta(kvIdx)
423 }
424 }
425 return nil, fmt.Errorf("kv not found: the shard is not completed?")
426}
427
428func (ds *DataShard) Close() error {
429 for _, df := range ds.dataFiles {

Callers 1

ReadWithMetaMethod · 0.95

Calls 1

ContainsKvMethod · 0.80

Tested by

no test coverage detected