MCPcopy
hub / github.com/etcd-io/etcd / getHash

Function getHash

tools/etcd-dump-db/backend.go:170–173  ·  view source on GitHub ↗
(dbPath string)

Source from the content-addressed store, hash-verified

168}
169
170func getHash(dbPath string) (hash uint32, err error) {
171 b := backend.NewDefaultBackend(zap.NewNop(), dbPath)
172 return b.Hash(schema.DefaultIgnores)
173}
174
175// TODO: revert by revision and find specified hash value
176// currently, it's hard because lease is in separate bucket

Callers 1

getHashCommandFuncFunction · 0.85

Calls 1

HashMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…