MCPcopy
hub / github.com/dgraph-io/badger / keyID

Method keyID

value.go:179–185  ·  view source on GitHub ↗

KeyID returns datakey's ID.

()

Source from the content-addressed store, hash-verified

177
178// KeyID returns datakey's ID.
179func (lf *logFile) keyID() uint64 {
180 if lf.dataKey == nil {
181 // If there is no datakey, then we'll return 0. Which means no encryption.
182 return 0
183 }
184 return lf.dataKey.KeyId
185}
186
187func (lf *logFile) mmap(size int64) (err error) {
188 if lf.loadingMode != options.MemoryMap {

Callers 1

bootstrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected