MCPcopy Index your code
hub / github.com/uber/aresdb / GetHash

Method GetHash

controller/mutators/etcd/schema_mutator.go:299–301  ·  view source on GitHub ↗
(namespace string)

Source from the content-addressed store, hash-verified

297}
298
299func (m *tableSchemaMutator) GetHash(namespace string) (hash string, err error) {
300 return getHash(m.txnStore, utils.SchemaListKey(namespace))
301}
302
303func (m *tableSchemaMutator) readSchema(namespace string, name string) (schemaProto pb.EntityConfig, version int, err error) {
304 version, err = readValue(m.txnStore, utils.SchemaKey(namespace, name), &schemaProto)

Callers 1

TestSchemaMutatorFunction · 0.95

Calls 2

SchemaListKeyFunction · 0.92
getHashFunction · 0.85

Tested by 1

TestSchemaMutatorFunction · 0.76