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

Method DiscardEarlierVersions

iterator.go:147–149  ·  view source on GitHub ↗

DiscardEarlierVersions returns whether the item was created with the option to discard earlier versions of a key when multiple are available.

()

Source from the content-addressed store, hash-verified

145// DiscardEarlierVersions returns whether the item was created with the
146// option to discard earlier versions of a key when multiple are available.
147func (item *Item) DiscardEarlierVersions() bool {
148 return item.meta&bitDiscardEarlierVersions > 0
149}
150
151func (item *Item) yieldItemValue() ([]byte, func(), error) {
152 key := item.Key() // No need to copy.

Callers 5

BackupMethod · 0.80
ToListMethod · 0.80
iterateAndMergeMethod · 0.80
TestDiscardVersionsBelowFunction · 0.80
printKeyFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDiscardVersionsBelowFunction · 0.64